基於CentOS,使用root帳號html
使用Ambari
安裝HDP2.3.4java
按 http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/configure_hdp_hue.html 配置HDPpython
重啓HDPmysql
下載maven
及ant
c++
配置profile,加入幾個環境變量:sql
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/binapache
source /etc/profile
api
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
maven
下載Hue:https://dl.dropboxusercontent.com/u/730827/hue/releases/3.9.0/hue-3.9.0.tgz 並解壓oop
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
sudo -u hue nohup /usr/local/hue/build/env/bin/supervisor &
sudo -u hue nohup /usr/local/hue/build/env/bin/hue livy_server &
pkill -U hue
OSError: [Errno 2] No such file or directory
確認java命令是否在環境變量中
刪除 hue/logs中livy_server.log後重試
http://gethue.com/hadoop-hue-3-on-hdp-installation-tutorial/