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

Installation steps for Hue

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces "the installation steps of Hue". In the daily operation, I believe many people have doubts about the installation steps of Hue. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "installation steps of Hue". Next, please follow the editor to study!

The steps to install Hue on CentOS 5.10 are as follows. Please make sure that python2.6, jdk1.7 and above are installed on the system before installation.

(if you compile in 1.6 environment, you need to modify maven/pom.xml to change javaVersion, sourceJavaVersion, targetJavaVersion to 1.6)

Install maven first. Note that it is best to download maven directly from the official website. Do not use yum, or you will download opeanjdk and other related packages together:

Wget http://apache.communilink.net/maven/maven-3/3.2.1/binaries/apache-maven-3.2.1-bin.tar.gztar xf apache-maven-3.2.1-bin.tar.gzmv apache-maven-3.2.1-bin / usr/local/mavenexport PATH=/usr/local/maven/bin:$PATH

Then download the source code package and install it or download it directly through the git command:

Yum install-y cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel libxml2-devel libxslt-devel mysql-devel openldap-devel python-devel python-simplejson sqlite-develwget https://github.com/cloudera/hue/archive/master-O hue-master.zip#git clone http://github.com/cloudera/hue.gitunzip hue-master.zip & & cd hue-mastercd huemake apps & & make installbuild/env/bin/hue runserver#start the production serverbuild/env/bin/supervisor

For the installation process, see: https://github.com/cloudera/hue

Detailed configuration to participate: Hue Installation Guide

Hue uses derby database by default. To use MySQL to store configuration information, you can refer to the configuration in the above link. You should pay attention to the process of data synchronization from derby to MySQL:

Cd / usr/local/hue/build/env/bin/# synchronizes the permission table to MySQL./hue syncdb-- noinput# table data of each app. / hue migrate-- all

After installation, you need to specify the web api path of services such as hdfs and hive in the configuration file, if services such as hbase or oozie are not installed in the cluster.

The corresponding module in hue cannot be used. For more information, please see hue-master/desktop/conf/pseudo-distributed.ini. When you start the service, you will bind the web service at port 8000.

The overall feeling is that hue supports a wide range of dependencies, and it is more troublesome to install if the system environment is missing. For example, make will build a virtual running environment by itself, resulting in a deviation from the default of the system, resulting in some problems in the compilation and installation process.

Of course, the easiest way to install is to use CDH's RPM package, but you need to use a whole set of CDH cluster environment. After all, this is not reasonable and feasible in the case of existing clusters.

Finally, about the installation of CDH, you can see another article of mine that uses CM4 to quickly deploy CDH4 clusters, cloud-manger to install hue, or after establishing the yum source warehouse address of cdh.

Yum install-y hue-* here, on the "Hue installation steps" study is over, I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Servers

Wechat

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

12
Report