Hue applications run in a Web browser and require no client installation.The following figure illustrates how Hue works. Hue Server is a "container" web application that sits in between hadoop installation and the browser. It hosts all the Hue web applications and communicates with various servers that interface withhadoopcomponents.
Hue consists of a web service that runs on a special node in the hadoop cluster.At here,I willuse existing master node as the Hue Server.
Hue employs some Python modules which use native code and requires certain development libraries be installed on the system. To install from the tarball, following components must be installed:
By default, Hue installs to ‘/usr/local/hue’ inthe masternode’s local filesystem.
(1) Sometimes the build process for the dependencies raises errors. So I suggest to manually install Ant and Maven.For these two tools, you can directly download corresponding release tarballs and then manually configure environment variable ANT_HOME and MAVEN_HOME and PATH.
(2) As installed, the Hue installation folders and file ownership will be set to the ‘root’ user. we‘d better to fix that so Hue can run correctly without root user permissions.
(3) For error message"creating build/temp.linux-x86_64-2.7/src gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/ -I/home/huser/miniconda/include/python2.7 -c src/_fastmath.c -o build/temp.linux-x86_64-2.7/src/_fastmath.o src/_fastmath.c:36:18: fatal error: gmp.h: No such file or directory # include <gmp.h> ^ compilation terminated. error: command ‘gcc‘ failed with exit status 1..."
is because that gcc had not found "gmp.h". You need to assure that you have installed "libgmp3-dev" package and have gmp.h in path. Try to execute below command to install libgmp3-dev.
Hue for Apache Hadoop