Hue 3.9 on HDP2.3.4 安裝備忘

安裝步驟

基於CentOS,使用root帳號html

準備環境

  1. 使用Ambari安裝HDP2.3.4java

  2. http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/configure_hdp_hue.html 配置HDPpython

  3. 重啓HDPmysql

  4. 下載mavenantc++

  5. 配置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

  6. source /etc/profileapi

  7. 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-develmaven

下載安裝

  1. 下載Hue:https://dl.dropboxusercontent.com/u/730827/hue/releases/3.9.0/hue-3.9.0.tgz 並解壓oop

  2. make install,安裝時如何出錯或卡頓了須要rm -rf /user/local/hue/再重試

  3. 配置Hue.ini,見:http://gethue.com/hadoop-hue-3-on-hdp-installation-tutorial/

  4. 建立Hue用戶和組:

    groupadd hue useradd -g hue hue chown -R hue:hue /usr/local/hue

啓動與中止

  1. 啓動Hue sudo -u hue nohup /usr/local/hue/build/env/bin/supervisor &
  2. 啓動livy(Spark支持) sudo -u hue nohup /usr/local/hue/build/env/bin/hue livy_server &
  3. 中止 pkill -U hue

一些錯誤

  1. 啓動livy時出現OSError: [Errno 2] No such file or directory

確認java命令是否在環境變量中

  1. 啓動livy時報權限錯誤

刪除 hue/logs中livy_server.log後重試

參考:

http://gethue.com/hadoop-hue-3-on-hdp-installation-tutorial/

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/configure_hdp_hue.html

http://blog.csdn.net/bluishglc/article/details/48393291

相關文章
相關標籤/搜索