hue刚进hbase
把报错
Api Error: HTTPConnectionPool(host=‘ambari-3’, port=9090): Max retries exceeded with url: / (Caused by NewConnectionError(’: Failed to establish a new connection: [Errno 111] Connection refused’,))
原因:thrift没有打开
使用以下命令打开 在hbase的主节点
hbase-daemon.sh start thrift
如果提示找不到,就搜索 find / -name hbase-daemon.sh
重启服务
进入hue界面,又报错
User: root is not allowed to impersonate admin
admin是我的hue用户
这是个权限问题
查找了网上的方法
<property>
<name>hadoop.proxyuser.xxx.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.xxx.groups</name>
<value>*</value>
</property>
User: root is not allowed to impersonate admin
User:后面是什么xxx就是什么
所以我的是
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
</property>
重启服务
还是不行
是因为thrift也必须重启
hbase-daemon.sh stop thrift
hbase-daemon.sh start thrift
然后就OK了