无法通过访问hbase

xxb16uws  于 2021-06-10  发布在  Hbase
关注(0)|答案(2)|浏览(518)

所以,我试图通过clouderavm中的hue浏览器访问hbase,但遇到了一些问题。首先,当我打开色调,我得到这个错误:

Potential misconfiguration detected. Fix and restart Hue.
HBase Browser   Failed to authenticate to HBase Thrift Server, check authentication configurations.

当我转到hue中的hbase时,出现以下错误:

Api Error: HTTPConnectionPool(host='quickstart.cloudera', port=9090): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f2ef8ace450>: Failed to establish a new connection: [Errno 111] Connection refused',))

我在浏览器中检查了cloudera快速启动ui,发现hbase thrift服务器示例已关闭,所以我尝试重新启动它,但无法重新启动。
在hbase配置中

hbase.thrift.security.qop was set to auth

所以,我将其设置为“无”,重新启动hbase和hue,现在hbase旧服务器启动了。然后我去了色调浏览器,但它显示错误

Potential misconfiguration detected. Fix and restart Hue.
HBase Browser   Failed to authenticate to HBase Thrift Server, check authentication configurations.

当我去hbase的时候,它就显现出来了

api error <html>

我尝试了谷歌上所有可用的东西,比如两者都检查

hbase.regionserver.thrift.http
hbase.thrift.support.proxyuser

但是即使尝试了所有的方法,我的错误仍然没有消失,我无法通过hue访问hbase。
有什么问题吗?

xghobddn

xghobddn1#

检查服务器日志http://x.x.x.x:8889/色调/原木
启用
hbase.regionserver.thrift.http
hbase.thrift.support.proxyuser
将配置添加到hdfs core-site.xml中

<property>
             <name>hadoop.proxyuser.hbase.hosts</name>
             <value>*</value>
     </property>
     <property>
             <name>hadoop.proxyuser.hbase.groups</name>
             <value>*</value>
     </property>
mkshixfv

mkshixfv2#

我解决了!
我就是这么做的。
我禁用了cloudera快速启动浏览器UI中的所有服务。然后我启用,hbase,然后hue和zookeeper。已将所有hbase设置更改为默认值,例如将身份验证更改为“无”,并取消选中hbase.regionserver.thrift.http和hbase.thrift.support.proxyuser

相关问题