Hbase tables not loading in Hue #17
daveliu864
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I have built Hue 4.10 in a Docker container and I am trying to connect to Hbase within my cluster through the Hue browser, however most of the Hbase tables that I try to load on Hue end up with this error:
[19/Nov/2021 15:44:40 +1100] thrift_util ERROR Thrift saw exception (this may be expected).
Traceback (most recent call last):
File "/usr/share/hue/desktop/core/src/desktop/lib/thrift_util.py", line 522, in wrapper
ret = res(*args, **kwargs)
File "/usr/share/hue/apps/hbase/gen-py/hbased/Hbase.py", line 57, in decorate
return func(*args, **kwargs)
File "/usr/share/hue/apps/hbase/gen-py/hbased/Hbase.py", line 2343, in scannerGetList
return self.recv_scannerGetList()
File "/usr/share/hue/apps/hbase/gen-py/hbased/Hbase.py", line 2363, in recv_scannerGetList
result.read(iprot)
File "/usr/share/hue/apps/hbase/gen-py/hbased/Hbase.py", line 10790, in read
_elem493.read(iprot)
File "/usr/share/hue/apps/hbase/gen-py/hbased/ttypes.py", line 765, in read
_val13.read(iprot)
File "/usr/share/hue/apps/hbase/gen-py/hbased/ttypes.py", line 55, in read
self.value = iprot.readString()
File "/usr/share/hue/build/env/lib/python3.8/site-packages/thrift/protocol/TProtocol.py", line 184, in readString
return binary_to_str(self.readBinary())
File "/usr/share/hue/build/env/lib/python3.8/site-packages/thrift/compat.py", line 37, in binary_to_str
return bin_val.decode('utf8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 72: invalid start byte
[19/Nov/2021 15:44:40 +1100] thrift_util INFO Thrift saw exception: 'utf-8' codec can't decode byte 0x9c in position 72: invalid start byte
[19/Nov/2021 15:44:40 +1100] middleware INFO Processing exception: 'UnicodeDecodeError' object has no attribute 'message': Traceback (most recent call last):
File "/usr/share/hue/apps/hbase/src/hbase/api.py", line 52, in query
return getattr(self, action)(*args)
File "/usr/share/hue/apps/hbase/src/hbase/api.py", line 241, in getRowQuerySet
aggregate_data += client.scannerGetList(scanner, query['scan_length'], doas=self.user.username)
File "/usr/share/hue/desktop/core/src/desktop/lib/thrift_util.py", line 453, in wrapper
return attr(*args, **kwargs)
File "/usr/share/hue/desktop/core/src/desktop/lib/thrift_util.py", line 522, in wrapper
ret = res(*args, **kwargs)
File "/usr/share/hue/apps/hbase/gen-py/hbased/Hbase.py", line 57, in decorate
return func(*args, **kwargs)
File "/usr/share/hue/apps/hbase/gen-py/hbased/Hbase.py", line 2343, in scannerGetList
return self.recv_scannerGetList()
File "/usr/share/hue/apps/hbase/gen-py/hbased/Hbase.py", line 2363, in recv_scannerGetList
result.read(iprot)
File "/usr/share/hue/apps/hbase/gen-py/hbased/Hbase.py", line 10790, in read
_elem493.read(iprot)
File "/usr/share/hue/apps/hbase/gen-py/hbased/ttypes.py", line 765, in read
_val13.read(iprot)
File "/usr/share/hue/apps/hbase/gen-py/hbased/ttypes.py", line 55, in read
self.value = iprot.readString()
File "/usr/share/hue/build/env/lib/python3.8/site-packages/thrift/protocol/TProtocol.py", line 184, in readString
return binary_to_str(self.readBinary())
File "/usr/share/hue/build/env/lib/python3.8/site-packages/thrift/compat.py", line 37, in binary_to_str
return bin_val.decode('utf8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 72: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/hue/build/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/usr/share/hue/apps/hbase/src/hbase/views.py", line 86, in api_router
return api_dump(HbaseApi(request.user).query(*url_params))
File "/usr/share/hue/apps/hbase/src/hbase/api.py", line 56, in query
if 'Could not connect to' in e.message:
AttributeError: 'UnicodeDecodeError' object has no attribute 'message'
The Docker image was built instead of pulled as our cluster uses Kerberos and we had to add krb5-config and krb5-user libraries to the Dockerfile. We were also having errors with Gunicorn before which cause Hue to not load up at all, resulting in just a white page. This was fixed by modifiy the hue.ini file so gunicorn_work_class=gthread instead of eventlet. I am wondering if these two fixes have somehow cause the current Hbase issue.
Just wondering if anyone else if having this problem and if there are ways to fix it?
Beta Was this translation helpful? Give feedback.
All reactions