Configuring CDH Components for Hue
参考:http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cdh_ig_cdh_hue_configure.html
Hue install
1 2 |
yum install hue yum install hue-server |
HttpFS Configuration
配置HUE成为其他用户及组的代理,HUE将接管其他用户的任意动作。
HttpFS: Verify that /etc/hadoop-httpfs/conf/httpfs-site.xml has the following configuration:
1 2 3 4 5 6 7 8 9 |
<!-- Hue HttpFS proxy user setting --> <property> <name>httpfs.proxyuser.hue.hosts</name> <value>*</value> </property> <property> <name>httpfs.proxyuser.hue.groups</name> <value>*</value> </property> |
Verify that core-site.xml has the following configuration:
1 2 3 4 5 6 7 8 |
<property> <name>hadoop.proxyuser.httpfs.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.httpfs.groups</name> <value>*</value> </property> |
如果需要新添上述参数,则要重启hadoop以生效。
root下编辑/etc/hue/conf.empty/hue.ini
更新hadoop.hdfs_clusters.default.webhdfs_url参数(直接在文中搜索webhdfs_url)。
将webhdfs_url参数改为如下(注意是14000端口):
1 |
webhdfs_url=http://FQDN:14000/webhdfs/v1/ |
Hive Configuration
HUE需要指向HiveServer2。因此需要更新hue.ini如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
[beeswax] # Host where Hive server Thrift daemon is running. # If Kerberos security is enabled, use fully-qualified domain name (FQDN). ## hive_server_host=localhost hive_server_host=localhost # Port where HiveServer2 Thrift server runs on. ## hive_server_port=10000 hive_server_port=10000 # Hive configuration directory, where hive-site.xml is located ## hive_conf_dir=/etc/hive/conf hive_conf_dir=/etc/hive/conf |
Start Hue server
1 |
service hue start |