首先 下下載hue 的tar包 ,之前hue 的包放在dropbox 有一段時間 掛了,一直沒有找到,后來扎到了 下載速度也非常慢 ,大家自己找下載源吧
解壓tar包
tar -zxvf hue-4.0.1.tgz -C /usr/local
安裝一些 依賴,因為 hue是用 python的 dijang 寫的,依賴的 包非常多,還要依賴 c 的make 我的centos python verison 是2.7.5
sudo yum install apache-maven ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel libxml2-devel libxslt-devel make mysql mysql-devel openldap-devel python-devel sqlite-devel gmp-devel python-simplejson libffi-devel
建議先自己安裝好 mysql ,因為也需要,參考我的這篇 文章
http://www.lxweimin.com/p/fe1182abbce0
,后來發(fā)現(xiàn) 運行 還有報錯 需要 安裝
`
yum install libffi-devel
yum -y install cyrus-sasl-plain cyrus-sasl-devel cyrus-sasl-gssapi
`
參考 https://community.hortonworks.com/questions/43497/hue-3100-creates-a-fatal-error.html
http://blog.csdn.net/lsshlsw/article/details/47865601
http://ju.outofmemory.cn/entry/105162
然后 進入 hue的根目錄
找到 destop 目錄 并進入 conf 目錄找到 hue.ini,
/usr/local/hue/desktop/conf
修改 配置 hue.ini 的一些屬性值
vi hue.ini
參考 http://blog.csdn.net/lsshlsw/article/details/47865601
http://blog.csdn.net/nsrainbow/article/details/43677077
最主要的是 host port webhdfs 和 enable web
之后 回到 hue的根目錄 ,make 編譯,會生成 ./build 目錄
`
make apps
`
啟動服務(wù)。
進入Hue目錄下的build/env/bin目錄,執(zhí)行
hue runserver 建議后臺運行 &
然后 啟動web界面
./build/env/bin/supervisor
然后登陸 瀏覽器 host :port
正常即可瀏覽到
首次登陸 需要創(chuàng)建管理者用戶
登陸后,還可以繼續(xù)修改密碼 創(chuàng)建其他用戶 創(chuàng)建 組
進入后可能還有其他工具的小錯誤 ,需要注意 去配置
另外 hue 還可以通過 git 的源碼 編譯 和
http://www.pythontip.com/blog/post/12238/
yum install hue 安裝
http://blog.csdn.net/nsrainbow/article/details/43677077
和mac 安裝
http://www.coderli.com/config-hue3.9-on-macosx/
另外還可以參考hue 官網(wǎng)的安裝方式,超級全面
http://gethue.com/hadoop-hue-3-on-hdp-installation-tutorial/