安装步骤
基于CentOS,使用root账号
准备环境
-
使用
Ambari
安装HDP2.3.4 -
重启HDP
-
下载
maven
及ant
-
配置profile,加入几个环境变量:
export JAVA_HOME=/usr/jdk64/jdk1.8.0_60 export ANT_HOME=/hadoop/program/apache-ant-1.9.6 export MAVEN_HOME=/hadoop/program/apache-maven-3.3.9 export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin:$MAVEN_HOME/bin
-
source /etc/profile
-
yum -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
下载安装
-
下载Hue:https://dl.dropboxusercontent.com/u/730827/hue/releases/3.9.0/hue-3.9.0.tgz 并解压
-
make install
,安装时如何出错或卡顿了需要rm -rf /user/local/hue/
再重试 -
配置Hue.ini,见:http://gethue.com/hadoop-hue-3-on-hdp-installation-tutorial/
-
创建Hue用户和组:
groupadd hue useradd -g hue hue chown -R hue:hue /usr/local/hue
启动与停止
- 启动Hue
sudo -u hue nohup /usr/local/hue/build/env/bin/supervisor &
- 启动livy(Spark支持)
sudo -u hue nohup /usr/local/hue/build/env/bin/hue livy_server &
- 停止
pkill -U hue
一些错误
- 启动livy时出现
OSError: [Errno 2] No such file or directory
确认java命令是否在环境变量中
- 启动livy时报权限错误
删除 hue/logs中livy_server.log后重试
参考:
http://gethue.com/hadoop-hue-3-on-hdp-installation-tutorial/
http://blog.csdn.net/bluishglc/article/details/48393291