hue hadoop配置
阿新 • • 發佈:2018-12-16
1. $HADOOP_HOME/etc/hadoop/hdfs-site.xml檔案配置,開啟hdfs的webhdfs:
<property>
<name>dfs.permissions.enabled</name>
<value>false</value>
</property>
<property>
<name>dfs.webhdfs.enabled</name>
<value>true</value>
</property>
2. core-site.xml設定使用者和使用者組
<property> <name>hadoop.proxyuser.hue.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.hue.groups</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.root.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.root.groups</name> <value>*</value> </property>
3. hue中hue.ini的配置按要求更改地址及相關埠號
[hadoop] # Configuration for HDFS NameNode # ------------------------------------------------------------------------ [[hdfs_clusters]] # HA support by using HttpFs [[[default]]] # Enter the filesystem uri fs_defaultfs=hdfs://node1:9000 # Use WebHdfs/HttpFs as the communication mechanism. # Domain should be the NameNode or HttpFs host. # Default port is 14000 for HttpFs. webhdfs_url=http://192.168.137.60:50070/webhdfs/v1 # Directory of the Hadoop configuration hadoop_conf_dir=/root/bdata/hadoop-2.6.0/etc/hadoop # Configuration for YARN (MR2) # ------------------------------------------------------------------------ [[yarn_clusters]] [[[default]]] # Enter the host on which you are running the ResourceManager resourcemanager_host=node1 # The port where the ResourceManager IPC listens on resourcemanager_port=8032 # Whether to submit jobs to this cluster submit_to=True # URL of the ResourceManager API resourcemanager_api_url=http://node1:8088 # URL of the ProxyServer API proxy_api_url=http://node1:8088 # URL of the HistoryServer API history_server_api_url=http://node1:19888 # HA support by specifying multiple clusters.