If you are going to use Hue with an HA Cluster, make the following changes to
/etc/hue/conf/hue.ini
:
Install the Hadoop HttpFS component on the Hue server.
For RHEL/CentOS/Oracle Linux:
yum install hadoop-httpfs
For SLES:
zypper install hadoop-httpfs
Modify
/etc/hadoop-httpfs/conf/httpfs-site.xml
to configure HttpFS to talk to the cluster by confirming the following properties are correct:<property> <name>httpfs.proxyuser.hue.hosts</name> <value>*</value> </property> <property> <name>httpfs.proxyuser.hue.groups</name> <value>*</value> </property>
Start the HttpFS service.
service hadoop-httpfs start
Modify the core-site.xml file. On the NameNodes and all the DataNodes, add the following properties to the $HADOOP_CONF_DIR /core-site.xml file. Where $HADOOP_CONF_DIR is the directory for storing the Hadoop configuration files. For example, /etc/hadoop/conf.
<property> <name>hadoop.proxyuser.httpfs.groups</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.httpfs.hosts</name> <value>*</value> </property>
In the
hue.ini
file, under the[hadoop][[hdfs_clusters]][[[default]]]
sub-section, use the following variables to configure the cluster:Restart Hue for the changes to take effect.
service hue restart