环境
系统:centos7
hdp版本:2.5
hue版本:3.11.0
1. 依赖包安装
yum install krb5-devel cyrus-sasl-gssapi cyrus-sasl-deve libxml2-devel libxslt-devel mysql mysql-devel openldap-devel python-devel python-simplejson sqlite-devel libffi-devel gmp-devel
2. hue下载
官网:http://gethue.com/category/release/
安装
1. 解压到/opt
cd /opt
tar -zxvf hue-3.11.0.tgz
cd hue-3.11.0
2. 新建用户组hue和用户hue
groupadd hue
useradd -g hue -G root hue
3. 编译并更改文件所属用户用户组
cd hue-3.11.0
make apps
chown -R hue:hue /opt/hue-3.11.0 //不然会报数据库不能读的问题
4. 配置
vim /opt/hue-3.11.0/desktop/conf/hue.ini
4.1 hdfs
[[hdfs_clusters]]
# HA support by using HttpFs
[[[default]]]
# Enter the filesystem uri
fs_defaultfs=hdfs://hadoop1.b3.com:8020
# NameNode logical name.
## logical_name=
# Use WebHdfs/HttpFs as the communication mechanism.
# Domain should be the NameNode or HttpFs host.
# Default port is 14000 for HttpFs.
webhdfs_url=http://hadoop1.b3.com:50070/webhdfs/v1
# Change this if your HDFS cluster is Kerberos-secured
## security_enabled=false
# In secure mode (HTTPS), if SSL certificates from YARN Rest APIs
# have to be verified against certificate authority
## ssl_cert_ca_verify=True
# Directory of the Hadoop configuration
## hadoop_conf_dir=$HADOOP_CONF_DIR when set or '/etc/hadoop/conf'
4.2 yarn
[[yarn_clusters]]
[[[default]]]
# Enter the host on which you are running the ResourceManager
resourcemanager_host=hadoop2.b3.com
# The port where the ResourceManager IPC listens on
## resourcemanager_port=8032
# Whether to submit jobs t