我在安装好hue登陆时遇到了这个问题
Traceback (most recent call last):
File "build/env/bin/supervisor", line 9, in <module>
load_entry_point('desktop==3.9.0', 'console_scripts', 'supervisor')()
File "/export/servers/hue-3.9.0-cdh5.14.0/desktop/core/src/desktop/supervisor.py", line 319, in main
setup_user_info()
File "/export/servers/hue-3.9.0-cdh5.14.0/desktop/core/src/desktop/supervisor.py", line 257, in setup_user_info
desktop.lib.daemon_utils.get_uid_gid(SETUID_USER, SETGID_GROUP)
File "/export/servers/hue-3.9.0-cdh5.14.0/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"
网上百度了下原因是因为你使用的root用户安装了hue,解决办法是创建一个普通的用户
[root@node03 /]# useradd aaron
[root@node03 /]# passwd 123456
BAD PASSWORD: it is too simplistic/systematic
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
# 创建时提示太简单不用理会
用su 切换到这个用户再登陆就可以了
[root@node03 /]# su pangjiapeng
[aaron@node03 /]$ cd /export/servers/
[aaron@node03 servers]$ ll
total 48
drwxr-xr-x 7 root root 4096 Aug 29 21:01 apache-flume-1.8.0-bin
drwxr-xr-x 9 root root 4096 Sep 2 20:57 apache-hive-2.1.1-bin
drwxr-xr-x 2 root root 4096 May 29 15:09 azkaban-db-0.1.0-SNAPSHOT
drwxr-xr-x 11 root root 4096 Aug 15 20:20 hadoop-2.7.5
drwxr-xr-x 3 root root 4096 Aug 27 22:06 hivedatas
-rw-r--r-- 1 root root 90 Aug 26 19:33 hive.sql
drwxr-xr-x 11 pangjiapeng 4001 4096 Sep 3 16:37 hue-3.9.0-cdh5.14.0
drwxr-xr-x. 8 root root 4096 Aug 14 22:35 jdk1.8.0_141
drwxr-xr-x 13 1106 4001 4096 Sep 3 08:40 oozie-4.1.0-cdh5.14.0
drwxr-xr-x 2 root root 4096 Aug 28 13:09 snappy
drwxr-xr-x 9 root root 4096 Aug 30 22:11 sqoop-1.4.6.bin__hadoop-2.0.4-alpha
drwxr-xr-x. 11 root root 4096 Aug 14 23:20 zookeeper-3.4.9
[aaron@node03 servers]$ cd hue-3.9.0-cdh5.14.0/
[aaron@node03 hue-3.9.0-cdh5.14.0]$ build/env/bin/supervisor
[INFO] Not running as root, skipping privilege drop
starting server with options:
{'daemonize': False,
'host': 'node03',
'pidfile': None,
'port': 8888,
'server_group': 'root',
'server_name': 'localhost',
'server_user': 'root',
'ssl_certificate': None,