1.问题重现
- 测试环境:
1.RedHat7.4
2.CDH5.16.1
3.使用root进行操作
4.集群已启用Kerberos
1.登录Hue并选择HBase模块。
界面上报错“API Error:timed out”,无法访问HBase中的表。
2.查看Hue的log有以下报错:
[root@ip-172-31-13-38 hue]#vim /var/log/hue/runcpserver.log[19/May/2019 07:07:07 -0700] thrift_util WARNING Not retrying thrift call getTableNames due to socket timeout[19/May/2019 07:07:07 -0700] thrift_util INFO Thrift saw a socket error: timed out[19/May/2019 07:07:07 -0700] exceptions_renderable ERROR Potential trace: [('/opt/cloudera/parcels/CDH-5.16.1-1.cdh5.16.1.p0.3/lib/hue/apps/hbase/src/hbase/api.py', 46, 'query', 'return getattr(self, action)(*args)'), ('/opt/cloudera/parcels/CDH-5.16.1-1.cdh5.16.1.p0.3/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.16.1-1.cdh5.16.1.p0.3/lib/hue/desktop/core/src/desktop/lib/thrift_util.py', 385, 'wrapper', "raise StructuredException('THRIFTSOCKET', str(e), data=None, error_code=502)")][19/May/2019 07:07:07 -0700] middleware INFO Processing exception: Api Error: timed out: Traceback (most recent call last): File "/opt/cloudera/parcels/CDH-5.16.1-1.cdh5.16.1.p0.3/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py