求助:cdh安装完成后,hue无法连接thrift-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

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

2018-08-04 11:12:35 9097 3

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

取消 提交回答
全部回答(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
添加回答
相关问答

0

回答

在Windows 2012系统上安装FTP和TCP的工具,但是默认是私网地址,无法使用其他PC连接

2020-06-19 18:06:04 346浏览量 回答数 0

2

回答

httpd.conf中没有相应的LoadModulerewritemodule等模块

2015-10-27 16:19:57 3926浏览量 回答数 2

3

回答

http://vwww.aliapp.com/pdf/无资质销售减肥假药

2015-01-09 10:45:38 7892浏览量 回答数 3

1

回答

热点centos-hot-ljserv一键安装程序jexus/jsp/php/asp.net/mysql提供下载

2015-04-12 22:28:35 13598浏览量 回答数 1

1

回答

暴露 TCP 协议或者 UDP 协议的服务

2018-05-20 01:08:01 879浏览量 回答数 1

1

回答

求助,Ubuntu安装jdk1.6失败

2017-01-09 23:21:05 2754浏览量 回答数 1

1

回答

flink Sql DDL 连接hbase,可以读的? #Flink

2020-06-03 20:59:35 717浏览量 回答数 1

1

回答

请问下采用jdbc(postgresql数据库)存储catalog不行么,我本地一直不行#Flink

2020-08-06 16:42:16 625浏览量 回答数 1

1

回答

Flask表单的HTML代码生成任务会有重复吗?

2021-11-17 19:36:14 103浏览量 回答数 1

3

回答

ubuntu14.04服务器重启系统后,服务器无法连接外网,ping不通任何网址ip

2017-09-07 17:57:45 3491浏览量 回答数 3
+关注
0
文章
2
问答
问答排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载