HUE 部署

      HUE 部署已关闭评论

参考官方文档

http://cloudera.github.io/hue/docs-4.0.0/manual.html#_install_hue

github

https://github.com/cloudera/hue#development-prerequisites

首先安装依赖包

yum install -y gcc libxml2-devel libxslt-devel cyrus-sasl-devel mysql-devel python-devel python-setuptools python-simplejson sqlite-devel ant gmp-devel cyrus-sasl-plain cyrus-sasl-devel cyrus-sasl-gssapi libffi-devel openldap-devel

选取需要的release版

https://github.com/cloudera/hue/releases

这里使用

https://github.com/cloudera/hue/archive/cdh5.15.0-release.tar.gz

运行wget

cd /tmp/
wget https://github.com/cloudera/hue/archive/cdh5.15.0-release.tar.gz

解压

tar -xzvf cdh5.15.0-release
 cd hue-cdh5.15.0-release/

build

PREFIX 为安装路径

PREFIX=/etc/ make install

如果报mvn找不到的错误

需要

wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum install apache-maven

 

如果报 Couldn’t import snappy 错误

需要

yum install snappy-devel

cd /etc/hue/build/env/bin/hue

./pip install python-snappy

 

然后执行以下命令

cd /etc/hue/
cd /etc/hue/build/env/bin
./hue runserver 192.168.101.15:8000

© 2018, RuiJi 社区. 版权所有.转载请注明出处