hue

使用hue服务前需要启动thift服务: ./hbase-daemon.sh restart thrift -threadpool -m 200 -w 500 (指定连接数)

hue安装
下载安装包https://github.com/cloudera/hue/releases
wget https://github.com/cloudera/hue/archive/release-3.9.0.tar.gz
下载解压到/home/q/hue/hue-release-3.9.0
依赖包安装

1
2
3
4
5
6
7
8
9
yum install -y python-devel
yum install -y gcc gcc-c++
yum install -y libxml2-devel
yum install -y sqlite-devel
yum install -y openldap-devel
yum install -y python-ldap
yum install libxslt-devel.x86_64
yum install cyrus-sasl-gssapi
yum install gmp-devel.x86_64

cd /home/q/hue/hue-release-3.9.0 进入hue目录
PREFIX=/usr/share make install执行命令编译安装 (该步骤会下载hue支持功能的所有依赖包,时间较长)

报错:

1
2
3
cd /home/hue/hue-release-3.9.0/desktop/libs/hadoop/java && mvn clean install -DskipTests

/bin/bash: mvn: command not found

配置环境变量,然后生效

1
2
3
export MAVEN_HOME=/home/q/apache-maven

export PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin

报错处理


需要hue用户,否则启动报错

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[root@hostname /home/q/hue]# /usr/share/hue/build/env/bin/supervisor -d

Traceback (most recent call last):

File "/usr/share/hue/build/env/bin/supervisor", line 9, in <module>

load_entry_point('desktop==3.9.0', 'console_scripts', 'supervisor')()

File "/usr/share/hue/desktop/core/src/desktop/supervisor.py", line 319, in main

setup_user_info()

File "/usr/share/hue/desktop/core/src/desktop/supervisor.py", line 257, in setup_user_info

desktop.lib.daemon_utils.get_uid_gid(SETUID_USER, SETGID_GROUP)

File "/usr/share/hue/desktop/core/src/desktop/lib/daemon_utils.py", line 45, in get_uid_gid

raise KeyError("Couldn't get user id for user %s" % (username,))

KeyError: "Couldn't get user id for user hue"

解决方法:useradd hue chown -R hue:hue /home/q/hue

再次启动/usr/share/hue/build/env/bin/supervisor -d