HUE3.9 tarball Installation

Source: Internet
Author: User

This article source: http://blog.csdn.net/bluishglc/article/details/48393291 prohibited any form of reprint, or will entrust CSDN official maintenance rights!

Document
    1. Installation and configuration: http://gethue.com/hadoop-hue-3-on-hdp-installation-tutorial/
    2. List of third-party components that Hue relies on:
      Https://github.com/cloudera/hue#development-prerequisites
Installing dependent third-party components for installation
-y install gcc-c++ asciidoc cyrus-sasl-devel cyrus-sasl-gssapi krb5-devel libxml2-devel libxslt-devel mysql-devel openldap-devel python-devel sqlite-devel openssl-devel gmp-devel
Manually install Ant and maven

In the list of third-party components that Hue relies on, it also includes Ant and Maven, and it is recommended that you manually download the appropriate release package to unzip the installation, and then configure the environment variables Ant_home and maven_home and the path

Installation

Enter the extracted directory and execute:

make install

Sometimes the make install fails because a third-party-dependent component is missing, which can be cleaned and then reinstalled:

make clean&&rm -rf /usr/local/hue&&make install

In particular, it is important to make sure that the network is unblocked during the build process, because MAVEN downloads the dependent jar packages in the build.

Configuration modification Hue.ini

The specific configuration is described in detail in the reference document given at the beginning, with only a few additional highlights:

Configure Hue:

vim /usr/local/hue/desktop/conf/hue.ini

Use:

:%s/localhost/your-master-node/gc

Find the place to replace the localhost. If it is a # #注释掉的项目需要去掉注释使其生效.

If you are installing HDP, you will want to find app_blacklist specifically, modified to:

app_blacklist=impala,security

Because HDP does not support these two modules.

Also need to modify is Secret_key, at the back of the random write a string can.

secret_key=3rT*[email protected]
Create a Hue user

It is recommended that you create a full-time user for Hue and set the/usr/local/hue group and owner to the hue User:

groupadd hueuseradd -g hue huechown -R hue:hue /usr/local/hue
Start

Start:

sudo -u hue nohup /usr/local/hue/build/env/bin/supervisor &

Stop it:

pkill -U hue
FAQ Hue Page Tip: The app won ' t work without a running Livy Spark Server

Livy server is the Rest API service for Spark, official documentation:
Https://github.com/cloudera/hue/tree/master/apps/spark/java

We can use:

sudo -u hue nohup /usr/local/hue/build/env/bin/hue livy_server &

To start it, but before you start it you need to know its version dependency on Spark. Livy server in Hue3.9 needs Spark 1.4, and HDP2.3 installs spark 1.3, which means that if you install HDP, you can't use spark on hue now, to avoid the Hue page escalation: Spark the app won ' t Work without a running Livy Spark Server error, we can disable the Spark module and edit the Hue.ini file as well:

app_blacklist=impala,security,spark
Hue page error:/wsgiserver.py line 1196 in Communicatereq.respond ()

If you open the Hue page:
Traceback (most recent):
File "/usr/local/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 1196, in communicate
Req.respond ()
It is likely that the previous use of RPM to install the old version of Hue did not completely uninstall the reason, in addition to check whether the relevant files have been completely removed, it is important to delete the previously established hue users and user groups .

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

HUE3.9 tarball Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.