日志记录
[kbd]/var/log/hue/error.log[/kbd]
(error 500)
[04/Jun/2020 18:59:28 -0700] exceptions_renderable ERROR Potential trace: [('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/apps/hbase/src/hbase/api.py', 46, 'query', 'return getattr(self, action)(*args)'), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/apps/hbase/src/hbase/api.py', 142, '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-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/thrift_util.py', 407, 'wrapper', 'return attr(*args, **kwargs)'), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/thrift_util.py', 473, 'wrapper', 'ret = res(*args, **kwargs)'), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/apps/hbase/gen-py/hbased/Hbase.py', 54, 'decorate', 'return func(*args, **kwargs)'), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/apps/hbase/gen-py/hbased/Hbase.py', 838, 'getTableNames', 'self.send_getTableNames()'), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/apps/hbase/gen-py/hbased/Hbase.py', 846, 'send_getTableNames', 'self._oprot.trans.flush()'), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/build/env/lib/python2.7/site-packages/thrift-0.9.1-py2.7-linux-x86_64.egg/thrift/transport/TTransport.py', 170, 'flush', 'self.__trans.flush()'), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/thrift_/http_client.py', 87, 'flush', "self._data = self._root.post('', data=data, headers=self._headers)"), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/rest/resource.py', 157, 'post', 'allow_redirects=allow_redirects, clear_cookies=clear_cookies, log_response=log_response)'), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/rest/resource.py', 80, 'invoke', 'log_response=log_response)'), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/rest/resource.py', 99, '_invoke', 'clear_cookies=clear_cookies)'), ('/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/rest/http_client.py', 215, 'execute', 'raise self._exc_class(ex)')]
[04/Jun/2020 18:59:43 -0700] thrift_util ERROR Thrift saw exception (this may be expected).
Traceback (most recent call last):
File "/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/thrift_util.py", line 473, in wrapper
ret = res(*args, **kwargs)
File "/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/apps/hbase/gen-py/hbased/Hbase.py", line 54, in decorate
return func(*args, **kwargs)
File "/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/apps/hbase/gen-py/hbased/Hbase.py", line 838, in getTableNames
self.send_getTableNames()
File "/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/apps/hbase/gen-py/hbased/Hbase.py", line 846, in send_getTableNames
self._oprot.trans.flush()
File "/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/build/env/lib/python2.7/site-packages/thrift-0.9.1-py2.7-linux-x86_64.egg/thrift/transport/TTransport.py", line 170, in flush
self.__trans.flush()
File "/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/thrift_/http_client.py", line 87, in flush
self._data = self._root.post('', data=data, headers=self._headers)
File "/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", line 157, in post
allow_redirects=allow_redirects, clear_cookies=clear_cookies, log_response=log_response)
File "/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", line 80, in invoke
log_response=log_response)
File "/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", line 99, in _invoke
clear_cookies=clear_cookies)
File "/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hue/desktop/core/src/desktop/lib/rest/http_client.py", line 215, in execute
raise self._exc_class(ex)
RestException: 500 Server Error: Server Error for url: http://node01:9090/
HBase Thrift Server关闭涉及framed配置
代理用户授权认证添加
Hue的配置hue_safety_valve.ini 的 Hue 服务高级配置代码段(安全阀)修改
[hbase]
hbase_conf_dir={{HBASE_CONF_DIR}}
thrift_transport=buffered
重启相关服务即可
由于CDH6默认启用 HBase Thrift 服务器压缩协议hbase.regionserver.thrift.compact和HBase Thrift 服务器框架运输hbase.regionserver.thrift.framed,
导致HBase使用framed的方式进行传输,而CDH6中Hue默认传输模式为buffered,导致API ERROR
文章评论