开发者社区> 问答> 正文

求助:cdh安装完成后,hue无法连接thrift

imhzsky 2018-08-04 11:12:35 3042

cdh安装完成后,hue无法连接thrift
hue平台的报错是:HBase Browser Failed to authenticate to HBase Thrift Server, check authentication configurations.
日志中的错误:
[root@cloudera-node-1 ~]# tail -f /var/log/hue/error.log

[03/Aug/2018 20:05:49 -0700] Hbase ERROR Could not set doAs parameter: TFramedTransport instance has no attribute '_TBufferedTransport__trans'
[03/Aug/2018 20:05:49 -0700] thrift_util ERROR Thrift saw exception (this may be expected).

HTTP ERROR 500


Problem accessing /. Reason:

    INTERNAL_SERVER_ERROR

Caused by:

org.apache.thrift.transport.TTransportException
    at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
    at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
    at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429)
    at org.apache.thrift.protocol.TBinaryProtocol.readByte(TBinaryProtocol.java:285)
    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:230)
    at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:27)
    at org.apache.thrift.server.TServlet.doPost(TServlet.java:83)
    at org.apache.hadoop.hbase.thrift.ThriftHttpServlet.doPost(ThriftHttpServlet.java:122)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:767)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

[03/Aug/2018 20:05:49 -0700] exceptions_renderable ERROR Potential trace: [('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/apps/hbase/src/hbase/api.py', 46, 'query', 'return getattr(self, action)(args)'), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/apps/hbase/src/hbase/api.py', 141, 'getTableList', "return [{'name': name, 'enabled': client.isTableEnabled(name, doas=self.user.username)} for name in client.getTableNames(doas=self.user.username)]"), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/thrift_util.py', 378, 'wrapper', 'return attr(args, kwargs)'), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/thrift_util.py', 440, 'wrapper', 'ret = res(args, kwargs)'), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/apps/hbase/gen-py/hbased/Hbase.py', 53, 'decorate', 'return func(args, **kwargs)'), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/apps/hbase/gen-py/hbased/Hbase.py', 832, 'getTableNames', 'self.send_getTableNames()'), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/apps/hbase/gen-py/hbased/Hbase.py', 840, 'send_getTableNames', 'self._oprot.trans.flush()'), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/build/env/lib/python2.7/site-packages/thrift-0.9.1-py2.7-linux-x86_64.egg/thrift/transport/TTransport.py', 293, 'flush', 'self.__trans.flush()'), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/thrift_/http_client.py', 84, 'flush', "self._data = self._root.post('', data=data, headers=self._headers)"), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/rest/resource.py', 153, 'post', 'allow_redirects=allow_redirects, clear_cookies=clear_cookies, log_response=log_response)'), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/rest/resource.py', 78, 'invoke', 'log_response=log_response)'), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/rest/resource.py', 97, '_invoke', 'clear_cookies=clear_cookies)'), ('/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/rest/http_client.py', 211, 'execute', 'raise self._exc_class(ex)')]

记得上次通过apache hadoop部署hbase 的时候也遇到类似的问题,后来用hue用户启动thrift server 就解决了,因此认为是hbase api调用权限的问题,但不知道如何解决,恳请知情人士不吝赐教,谢谢拉。1

2

分布式计算 Hadoop 分布式数据库 API Apache 网络架构 Hbase
分享到
取消 提交回答
全部回答(3)
  • q3ccn
    2019-07-17 22:59:50
    已采纳

    同样的问题,求解决方法


    用回5.14.4.3的parcels,这个版本是正常的。

    1 0
  • sr_zhang
    2019-07-17 22:59:50

    1.查版本 2.查配置 查考楼上信息

    0 0
  • imhzsky
    2019-07-17 22:59:50

    难道一定要配置Kerberos认证吗?


    求扩散

    0 0
添加回答
+ 订阅

分享数据库前沿,解构实战干货,推动数据库技术变革

推荐文章
相似问题