Community Articles
Find and share helpful community-sourced technical articles.
Labels (1)
Cloudera Employee

Installing Hue can be tricky as the latest version Hue 4.1.0 is available only as source code and Compiling it requires a lot of dependencies and development libraries for which there is very little information available on the Internet

The best document that I could find as reference was Hue 4.1.0 Installation Guide, though there are a few packages missing in the doc

After series of trial and error came up with the below steps to Compile / Install Hue successfully

  • Install JDK, Hue dependencies, and development Libraries
$ sudo yum -y update
$ sudo yum install -y git gcc libxml2-devel libxslt-devel cyrus-sasl-devel cyrus-sasl-gssapi mysql-devel python-devel python-setuptools sqlite-devel ant gcc-c++ *sasl* krb5-devel libtidy openldap-devel wget libffi-devel gmp-devel java-1.8.0-openjdk
  • Install Apache Maven from public Fedora repository
$ sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
$ sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
$ sudo yum install -y apache-maven
  • Clone Hue Git Repository
git clone https://github.com/cloudera/hue.git
  • Build Hue from Source
# Configure $PREFIX with the path where you want to install Hue
$ cd hue
$ PREFIX=/usr/share make install 

The above commands were executed and tested on

OS : CentOS release 6.9 (Final)
Hue : Version 4.1
Date : 21/Feb/2018
1,528 Views
0 Kudos
Comments
Super Collaborator

It might be beneficial to stuff this in a Docker container and run

make prod tarball

Then, you can run the Docker container for the respective environment, and simply copy the tarball to external clusters.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.
Version history
Last update:
‎02-21-2018 10:34 AM
Updated by:
Contributors
Top Kudoed Authors