[关闭]
@awsekfozc 2015-12-18T01:58:28.000000Z 字数 2333 阅读 2621

hue

hue


1)简介

大数据可视化工具

2)编译

下载地址
编译帮助文档

  1. ##解压
  2. $ tar -zxvf hue-3.7.0-cdh5.3.6.tar.gz -C /opt/cdh/
  3. ##yum安装相关组件(联网)
  4. $sudo yum install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel libtidy libxml2-devel libxslt-devel openldap-devel python-devel sqlite-devel openssl-devel mysql-devel gmp-devel
  5. ##编译
  6. $ cd /opt/cdh/hue-3.7.0-cdh5.3.6
  7. $ make apps
  8. ##编译好的hue
  9. $ cd /opt/cdh/hue-3.7.0-cdh5.3.6/apps

QQ截图20151216221717.png-24.2kB

3)安装

配置文件目录:$ cd /opt/cdh/hue-3.7.0-cdh5.3.6/desktop/conf  ---> hue.ini

配置如下(desktop):
QQ截图20151216223416.png-22.9kB
启动:

  1. $ cd /opt/cdh/hue-3.7.0-cdh5.3.6/
  2. $ build/env/bin/supervisor

访问:

http://hadoop.zc.com:8888/

4)集成hdfs

配置文档HDFS

  1. ##hdfs-site.xml
  2. <property>
  3. <name>dfs.webhdfs.enabled</name>
  4. <value>true</value>
  5. </property>
  6. ##core-site.xml
  7. <property>
  8. <name>hadoop.proxyuser.hue.hosts</name>
  9. <value>*</value>
  10. </property>
  11. <property>
  12. <name>hadoop.proxyuser.hue.groups</name>
  13. <value>*</value>
  14. </property>
  15. ##集群之外访问:httpfs-site.xml
  16. <property>
  17. <name>httpfs.proxyuser.hue.hosts</name>
  18. <value>*</value>
  19. </property>
  20. <property>
  21. <name>httpfs.proxyuser.hue.groups</name>
  22. <value>*</value>
  23. </property>

配置文档hue.ini

  1. fs_defaultfs=hdfs://hadoop.zc.com:8020
  2. # Default port is 14000 for HttpFs.
  3. webhdfs_url=http://hadoop.zc.com:50070/webhdfs/v1
  4. # Directory of the Hadoop configuration
  5. hadoop_conf_dir=/opt/cdh/hadoop-2.5.0-cdh5.3.6/etc/hadoop
  6. # Directory of the Hadoop home
  7. hadoop_hdfs_home=/opt/cdh/hadoop-2.5.0-cdh5.3.6/
  8. # Directory of the Hadoop bin
  9. hadoop_bin=/opt/cdh/hadoop-2.5.0-cdh5.3.6/bin

QQ截图20151216232901.png-41.7kB
QQ截图20151217003331.png-56kB

6)集成yarn

需要启动 hiveserver2
$ nohup hiveserver2 &

配置文档hue.ini

  1. # Enter the host on which you are running the ResourceManager
  2. resourcemanager_host=hadoop.zc.com
  3. # The port where the ResourceManager IPC listens on
  4. resourcemanager_port=8032
  5. # Whether to submit jobs to this cluster
  6. submit_to=True
  7. # URL of the ResourceManager API
  8. resourcemanager_api_url=http://hadoop.zc.com:8088
  9. # URL of the ProxyServer API
  10. proxy_api_url=http://hadoop.zc.com:8088
  11. # URL of the HistoryServer API
  12. history_server_api_url=http://hadoop.zc.com:19888

QQ截图20151216233313.png-35.3kB
QQ截图20151217003434.png-55kB

7)集成hive

配置文档hue.ini

注意:本地metastore不用配置。不是本地需要配置:https://cwiki.apache.org/confluence/display/Hive/AdminManual+MetastoreAdmin#AdminManualMetastoreAdmin-Local/EmbeddedMetastoreDatabase(Derby)
  1. # If Kerberos security is enabled, use fully-qualified domain name (FQDN).
  2. hive_server_host=hadoop.zc.com
  3. # Port where HiveServer2 Thrift server runs on.
  4. hive_server_port=10000
  5. # Hive configuration directory, where hive-site.xml is located
  6. hive_conf_dir=/opt/cdh/hive-0.13.1-cdh5.3.6/conf
  7. # Timeout in seconds for thrift calls to Hive service
  8. server_conn_timeout=120

QQ截图20151217002801.png-20kB
QQ截图20151217003313.png-55.8kB

5)集成RDBMS

QQ截图20151217005539.png-57.7kB
QQ截图20151217011815.png-83.9kB

在此输入正文

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注