Configure and install Hue

Configure and install Hue

Configure and install Hue-
1- Hue Native lib dependencies-
Hue has many modules which are dependent on native library.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Commands to install the required libraries-
sudo apt-get install ant
sudo apt-get install gcc
sudo apt-get install  g++
sudo apt-get install  libkrb5-dev
sudo apt-get install  libmysqlclient-dev
sudo apt-get install  libssl-dev
sudo apt-get install  libsasl2-dev
sudo apt-get install  libsasl2-modules-gssapi-mit
sudo apt-get install  libsqlite3-dev
sudo apt-get install libtidy-0.99-0
sudo apt-get install libxml2-dev
sudo apt-get install libxslt-dev
sudo apt-get install mvn
sudo apt-get install openldap-dev
sudo apt-get installpython-dev
sudo apt-get install python-simplejson
sudo apt-get install python-setuptools

2- download hue from Github- https://codeload.github.com/cloudera/hue/zip/master

3- Extract and build Hue-

1
2
3
unzip hue-master.zip -d hue
cd hue/hue-master
make apps

add the HUE_HOME into .bashrc file.

1
2
3
4
5
vi ~/.bashrc
export HUE_HOME
e.g. export HUE_HOME=/home/ubuntu/software/hue/hue-master
 
source ~/.bashrc

4- start the Hue server-
build/env/bin/hue runserver

5- Hadoop Configuration-
add below properties to hdfs-site.xml-

1
2
3
4
5
vi $HADOOP_HOME/conf/hdfs-site.xml
<property>
<name>dfs.webhdfs.enabled</name>
<value>true<value>
</property>

add below properties to core-site.xml-

1
2
3
4
5
6
7
8
9
10
vi $HADOOP_HOME/conf/core-site.html.
 
<property>
<name>hadoop.proxyuser.hue.hosts</name>
<value>*</value>
<property>
<property>
<name>hadoop.proxyuser.hue.groups</name>
<value>*</value>
<property><code class="literal"></code>

6- Restart the hadoop services-

1
2
sh $HADOOP_HOME/bin/stop-all.sh
sh $HADOOP_HOME/bin/start-all.sh

7- Hadoop MapReduce cofiguration-

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
copy hue jar files to hadoop lib
cp $HUE_HOME/desktop/libs/hadoop/java-lib/hue-plugins-*.jar $HADOOP_HOME/lib/.
 
add the below properties to mapred-site.xml then restart the job-tracker
vi $HADOOP_HOME/conf/mapred-site.html
 
<property>
<name>jobtracker.thrift.address</name>
<value>0.0.0.0:9290</value>
<property>
<property>
<name>mapred.jobtracker.plugins</name>
<value>org.apache.hadoop.thriftfs.ThriftJobTrackerPlugin</value>
<description>Comma-separated list of jobtracker plug-ins to be activated.</description>
<property>

you can check the thrift service status in job-tracker’s daemon log.

8- Hue submits all the jobs to oozie, to configure oozie with hue you need to update the oozie-site.xml.

1
2
3
4
5
6
7
8
<property>
<name>oozie.service.ProxyUserService.proxyuser.hue.hosts</name>
<value>*</value>
<property>
<property>
<name>oozie.service.ProxyUserService.proxyuser.hue.groups</name>
<value>*</value>
<property>

9- Hue comes with all default hive properties, if you have not changed any hive default configuration then you dont need to make any change for hive.

Know more about Hue- www.gethue.com

One thought on “Configure and install Hue

  1. Muzammi

    I have follows the above instructions and at point make apps …I got following error…Any one tell what is the problem I ‘m new in field.
    Thanks in advance.

    writing manifest file ‘MySQL_python.egg-info/SOURCES.txt’
    installing library code to build/bdist.linux-x86_64/egg
    running install_lib
    running build_py
    copying MySQLdb/release.py -> build/lib.linux-x86_64-2.7/MySQLdb
    running build_ext
    building ‘_mysql’ extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-nbjU53/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Dversion_info=(1,2,5,’final’,1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o
    _mysql.c:44:10: fatal error: my_config.h: No such file or directory
    #include “my_config.h”
    ^~~~~~~~~~~~~
    compilation terminated.
    error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
    /home/ubuntu/Downloads/hue/hue-master/Makefile.sdk:120: recipe for target ‘/home/ubuntu/Downloads/hue/hue-master/desktop/core/build/MySQL-python-1.2.5/egg.stamp’ failed
    make[2]: *** [/home/ubuntu/Downloads/hue/hue-master/desktop/core/build/MySQL-python-1.2.5/egg.stamp] Error 1
    make[2]: Leaving directory ‘/home/ubuntu/Downloads/hue/hue-master/desktop/core’
    Makefile:105: recipe for target ‘.recursive-env-install/core’ failed
    make[1]: *** [.recursive-env-install/core] Error 2
    make[1]: Leaving directory ‘/home/ubuntu/Downloads/hue/hue-master/desktop’
    Makefile:148: recipe for target ‘desktop’ failed
    make: *** [desktop] Error 2

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.