Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Hue in Centos7

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces Centos7 how to install Hue, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Hue installation

The example is based on Centos7 to install Hue. A large number of software and packages need to be installed before installation, because python and c must depend on packages.

Install the Hue dependency package in Centos7

Yum install ant gcc dependency + libkrb5-dev libmysqlclient-devyum install build-essential gcc-c++yum install python-dev libssl-dev build-essential zlibc zlib-bin libidn11-dev libidn11 zlib-devel# sasl.h required dependency package yum install cyrus-sasl-lib.x86_64 cyrus-sasl-devel.x86_64 libgsasl-devel.x86_64 saslwrapper-devel.x86_64# python xml dependency package yum install libxslt-develpip install lxml# c/_cffi_backend.c:15:17: fatal error: ffi.h:yum Problem solving that cannot be found by install libffi-devel# openssl/opensslv.h yum install openssl-devel# fatal error: lber.h: no file or directory yum install libldap2-dev openldap-devel# egg_info failed with error code 1 inyum install mysql-devel# sqlite3.h: no file or directory yum install gmp-devel sqlite-devel

There is no order in the installation of dependent packages, and basically they will be used.

Install Hue

1 download Hue

Http://gethue.com/hue-3-12-th... Go to the download page and download the corresponding version according to your own needs.

2 compile Hue

Tar-zxvf hue-3.12.0.tgz-C / usr/local/ cd / usr/local/hue-3.12.0 make install

If there is no problem with the compilation, you can configure it and delete the / usr/local/hue-3.12.0 directory.

3 configure Hue database

Vim / usr/local/hue/desktop/conf/hue.ini finds [[database]] to modify the configuration as follows:

Engine=mysql host=ambari-ttt-master port=3306 user=hue password=123456 name=hue schema=hue if name=hue is not configured, there will be problems initializing the database later.

4 configure desktop

Hue port, time zone and other information configuration

Http_host=0.0.0.0 http_port=8888 server_user=hue server_group=hue default_user=hue default_hdfs_superuser=hdfs

5 initialize the database

There is interaction between cd / usr/local/hue/build/env/bin/./hue syncdb during execution. Enter no. / hue migratemysql-h xxx-u hue-p whether the login database has been initialized

6 start and restart HUE

# start hue cd / usr/local/hue/build/env/bin supervisor & # disable the hue,hue daemon will pull up the hue process pkill-U hue or killall-u hue

7 Log in to Hue Web-Ui

Http://x.x.x.x:8888 create administrator

Hue component configuration HDFS configuration [[hdfs_clusters]] [[default] # Enter the filesystem uri fs_defaultfs=hdfs://ambari-ttt-master:8020 # Use WebHdfs/HttpFs as the communication mechanism. # Domain should be the NameNode or HttpFs host. # Default port is 14000 for HttpFs. Webhdfs_url= http://ambari-ttt-master:50070/webhdfs/v1 # Directory of the Hadoop configuration hadoop_conf_dir=$HADOOP_CONF_DIR [[yarn_clusters]] [default] resourcemanager_host=ambari-ttt-master resourcemanager_port=8141 submit_to=True # URL of the ResourceManager API resourcemanager_api_url= http://ambari-ttt-master:8088 # URL of the ProxyServer API proxy_api_url=http:/ / ambari-ttt-master:8088 # URL of the HistoryServer API history_server_api_url= http://ambari-ttt-master:19888 # URL of the Spark HistoryServer spark_history_server_url= http://ambari-ttt-master:18088

You need to add access permissions to the HDFS configuration Custom core-site in Ambari, as follows:

Hadoop.proxyuser.hue.groups=*hadoop.proxyuser.hue.hosts=* thank you for reading this article carefully. I hope the article "how to install Hue for Centos7" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report