hue 4.2.0安装(tarball 安装)
hue 4.2.0安装
一. 安装依赖
sudo yum install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-plain gcc gcc-c++ krb5-devel libffi-devel libxml2-devel libxslt-devel make mysql mysql-devel openldap-devel python-devel sqlite-devel gmp-devel
二.安装 oracle JDK
这个程序员都会,这里就不说了哈
三.安装MAVEN
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 mvn --version
配置maven远程仓库
# 配置文件所在的位置是/etc/maven/settings.xml <mirrors> <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror> <mirror> <id>ui</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://uk.maven.org/maven2/</url> </mirror> <mirror> <id>jboss-public-repository-group</id> <mirrorOf>central</mirrorOf> <name>JBoss Public Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public</url> </mirror> </mirrors>
四.下载并安装hue
sudo wget https://dl.dropboxusercontent.com/u/730827/hue/releases/4.0.1/hue-4.0.1.tgz tar zxvf hue-4.0.1.tgz cd hue-4.0.1.tgz #安装 make apps
如果编译出现问题,需要重新clean,再编译
make clean make apps
五.配置hue.ini
Hue的配置集中在$HUE_HOME/desktop/conf/hue.ini文件
HUE
secret_key=jFE93j;2[290-eiw.KEiwN2s3['d;/.q[eIW^y#e=+Iei*@Mn<qW5o http_host=0.0.0.0 http_port=8888 server_user=hue server_group=hue default_user=hue default_hdfs_superuser=hue
HDFS
fs_defaultfs=hdfs://master:9000
webhdfs_url=http://master:50070/webhdfs/v1
hadoop_conf_dir=/home/hadoop/hadoop-2.6.0/etc/hadoop
YARN
resourcemanager_host=master
resourcemanager_port=8032
resourcemanager_api_url=http://master:18088
proxy_api_url=http://master:18088
history_server_api_url=http://master:19888
HBASE
hbase_clusters=(Cluster|master:9090)
hbase_conf_dir=/home/hadoop/hbase-1.0.1.1/conf
HIVE
hive_server_host=master
hive_server_port=10000
hive_conf_dir=/etc/hive/conf
如果hive服务器和hue服务器不在同一台机器上面,那么需要把hive-site.xml 拷贝到hue所在服务器的/etc/hive/conf目录。
HADOOP配置
在hdfs-site.xml添加
<property> <name>dfs.webhdfs.enabled</name> <value>true</value> </property>
在core-site.xml添加
<!-- enable WebHDFS in the NameNode and DataNodes --> <property> <name>dfs.webhdfs.enabled</name> <value>true</value> </property> <!-- Hue WebHDFS proxy user setting --> <property> <name>hadoop.proxyuser.hue.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.hue.groups</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.httpfs.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.httpfs.groups</name> <value>*</value> </property>
注意:这里使用的webHDFS,如果需要httpFS,请参考官网进行配置
配置成功以后需要重新启动hadoop集群,注意需要将配置问题同步到所有主机上
六.启动集群
首先启动Hadoop集群中的HDFS,YARN,HBase等相关组件。
然后在$HUE_HOME目录下:
nohup build/env/bin/supervisor &
根据配置的端口访问,我这里是8888端口:
参考:
- Cloudera Hue Install http://cloudera.github.io/hue/latest/admin-manual/manual.html
- centos 安装hue 4.0 https://www.cnblogs.com/sanduo1314/p/7420472.html
- How to configure for your hadoop cluster http://gethue.com/how-to-configure-hue-in-your-hadoop-cluster/