3.3. Deploy Hue with an HA Cluster

If you are going to use Hue with an HA Cluster, make the following changes to /etc/hue/conf/hue.ini:

  1. Install the Hadoop HttpFS component on the Hue server.

    For RHEL/CentOS/Oracle Linux:

     yum install hadoop-httpfs

    For SLES:

    zypper install hadoop-httpfs
  2. 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>
  3. Start the HttpFS service.

    service hadoop-httpfs start
  4. 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>
  5. In the hue.ini file, under the [hadoop][[hdfs_clusters]][[[default]]] sub-section, use the following variables to configure the cluster:

     

    Table 8.1. Hue Configuration Properties

     Property

    Description

    Example
    fs_defaultfsNameNode URL using the logical name for the new name service. For reference, this is the dfs.nameservices property in hdfs-site.xml in your Hadoop configuration.

    hdfs://mycluster

    webhdfs_url URL to the HttpFS server.http://c6401.apache.org:14000/webhdfs/v1/


  6. Restart Hue for the changes to take effect.

    service hue restart 

loading table of contents...