Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install Hue in Centos

Shulou Source: shulou.com Published: 2022-06-01 02:13:23 10月02日 Update

This post is about how Centos installs Hue. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

1. Download a tarball version from hue official website (http://gethue.com/)(wget or download locally)

2. Upload rz to the server and extract it to a directory.

3. Installation Dependency:

yum install krb5-devel cyrus-sasl-gssapi cyrus-sasl-deve libxml2-devel libxslt-devel mysql mysql-devel openldap-devel python-devel python-simplejson sqlite-devel

4. Specify the installation directory and install

PREFIX=/home/hadoop make install

5, HDFS Start httpfs, Note that the same machine in namenode

httpfs.sh start

hbase, start thrift, note thrift, not thrift2; hive starts hiveserver2

hbase-daemon.sh start thrifthive --service hiveserver2 &

7. Modify configuration, hue.ini

Key Hadoop configurations: fs_defaultfs=hdfs://xxxx:port webhdfs_url=(httpfs service) resourcemanager_host resourcemanager_port resourcemanager_api_url history_server_api_url Hive Key Configuration: hive_server_host hive_server_port hive_conf_dir HBase Key configuration: hbase_clusters (thrift server of hbase)

8. Database synchronization:

cd /home/hadoop/hue#synchronize permissions table to MySQL./ hue syncdb --noinput#Table data for each app./ hue migrate --all

9. Ensure that users are unified and modify the permissions of the entire directory

chow -R hadoop:hadoop /home/hadoop/hue

Start Hue

cd /home/hadoop/hue ./ build/env/bin/supervisor -d -u hadoop -g hadoop

10. Login successful, verification

Thank you for reading! About "Centos how to install Hue" this article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Tags: Configuration key directory content data more permissions articles synchronization services good practical successful database articles servers machines users see knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS OPPO Reno Docker MySQL MariaDB