hue安装及基本测试-笔记

网友投稿 248 2022-11-07

hue安装及基本测试-笔记

#########################################################################################################hue安装: 操作系统 安装以下软件:CentOS/RHEL: Oracle's JDK (read more here)antasciidoccyrus-sasl-develcyrus-sasl-gssapicyrus-sasl-plaingccgcc-c++krb5-devellibffi-devellibtidy (for unit tests only)libxml2-devellibxslt-develmakemvn (from apache-maven package or maven3 tarball)mysqlmysql-developenldap-develpython-develsqlite-developenssl-devel (for version 7+)gmp-devel 解压hue tar包 cd 解压目录export PATH=/usr/local/mysql/bin:$PATHmake apps 编译成功后目录下会多出两个文件。 *******************************************配置:desktop/conf/hue.init [desktop]   # Set this to a random string, the longer the better.  # This is used for secure hashing in the session store.  secret_key=jFE93j;2[290-eiw.KEiwN2s3['d;/.q[eIW^y#e=+Iei*@Mn  dfs.webhdfs.enabled  trueYou also need to add this to core-site.html.   hadoop.proxyuser.hue.hosts  *  hadoop.proxyuser.hue.groups  * ---desktop/conf/hue.init [hadoop]   # Configuration for HDFS NameNode  # ------------------------------------------------------------------------  [[hdfs_clusters]]    # HA support by using HttpFs     [[[default]]]      # Enter the filesystem uri      fs_defaultfs=hdfs://chavin.king:9000       # NameNode logical name.      ## logical_name=       # Use WebHdfs/HttpFs as the communication mechanism.      # Domain should be the NameNode or HttpFs host.      # Default port is 14000 for HttpFs.      webhdfs_url=http://chavin.king:50070/webhdfs/v1       # Change this if your HDFS cluster is Kerberos-secured      ## security_enabled=false       # Default umask for file and directory creation, specified in an octal value.      ## umask=022       # Directory of the Hadoop configuration      hadoop_conf_dir=/opt/cdh-5.3.6/hadoop-2.5.0-cdh5.3.6/etc/hadoop   # Configuration for YARN (MR2)  # ------------------------------------------------------------------------  [[yarn_clusters]]     [[[default]]]      # Enter the host on which you are running the ResourceManager      resourcemanager_host=chavin.king       # The port where the ResourceManager IPC listens on      resourcemanager_port=8032       # Whether to submit jobs to this cluster      submit_to=True       # Resource Manager logical name (required for HA)      ## logical_name=       # Change this if your YARN cluster is Kerberos-secured      ## security_enabled=false       # URL of the ResourceManager API      resourcemanager_api_url=http://chavin.king:8088       # URL of the ProxyServer API      proxy_api_url=http://chavin.king:8088       # URL of the HistoryServer API      history_server_api_url=http://chavin.king:19888       # In secure mode (HTTPS), if SSL certificates from Resource Manager's      # Rest Server have to be verified against certificate authority      ## ssl_cert_ca_verify=False     # HA support by specifying multiple clusters    # e.g.     # [[[ha]]]      # Resource Manager logical name (required for HA)      ## logical_name=my-rm-name   # Configuration for MapReduce (MR1)  # ------------------------------------------------------------------------ hue配置连接hive: hive-site.xml配置:                       hive.server2.thrift.port              10000                              hive.server2.thrift.bind.host              chavin.king                                      hive.metastore.uris              thrift://chavin.king:9083                并且启动hiveserver2 和 hive metastore                #bin/hiveserver2 &        #bin/hive --service metastore &         配置hue.ini文件: ############################################################################ Settings to configure Beeswax with Hive########################################################################### [beeswax]   # Host where HiveServer2 is running.  # If Kerberos security is enabled, use fully-qualified domain name (FQDN).  hive_server_host=chavin.king   # Port where HiveServer2 Thrift server runs on.  hive_server_port=10000   # Hive configuration directory, where hive-site.xml is located  hive_conf_dir=/opt/cdh-5.3.6/hive-0.13.1-cdh5.3.6/conf   # Timeout in seconds for thrift calls to Hive service  server_conn_timeout=120   ****************************************************************************    配置连接关系型数据库:     [[databases]]    # sqlite configuration.    [[[sqlite]]]      # Name to show in the UI.      nice_name=SQLite       # For SQLite, name defines the path to the database.      name=/opt/cdh-5.3.6/hue-3.7.0-cdh5.3.6/desktop/desktop.db       # Database backend to use.      engine=sqlite       # Database options to send to the server when connecting.      # ## options={}     # mysql, oracle, or postgresql configuration.    [[[mysql]]]      # Name to show in the UI.      nice_name="My SQL DB"       # For MySQL and PostgreSQL, name is the name of the database.      # For Oracle, Name is instance of the Oracle server. For express edition      # this is 'xe' by default.      name=chavin       # Database backend to use. This can be:      # 1. mysql      # 2. postgresql      # 3. oracle      engine=mysql       # IP or hostname of the database to connect to.      host=chavin.king       # Port the database server is listening to. Defaults are:      # 1. MySQL: 3306      # 2. PostgreSQL: 5432      # 3. Oracle Express Edition: 1521      port=3306       # Username to authenticate with when connecting to the database.      user=root       # Password matching the username to authenticate with when      # connecting to the database.      password=mysql       # Database options to send to the server when connecting.      # ## options={}            bin/oozie-setup.sh sharelib create -fs hdfs://chavin.king:9000 -locallib oozie-sharelib-4.0.0-cdh5.3.6-yarn.tar.gz

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:RS-232接口器件的有功功率,为什么没出现在产品说明中?
下一篇:Spring单元测试类ApplicationTests错误的解决
相关文章

 发表评论

暂时没有评论,来抢沙发吧~