Created on 02-18-2019 01:15 PM - edited 09-16-2022 07:10 AM
Hi, Hue Community,
In Hue browser in my cloudera virtual machine, I created a table with a column family, cf and then used bulk upload to upload a csv file.
But I got an error "API error: TSocket reads 0 bytes'.
I have already used "sudo service hbase-thrift restart " and sudo jps shows that ThriftServer is running.
I could not find a resolution from Google search.
So, I decide to ask this question here. Thanks.
Created 02-19-2019 04:06 AM
Created 02-19-2019 06:36 AM
Hi Tomas79, where to find the hue log? What is the name of the hue log file?
I searched through some other related posts. I found out that I cannot change any hue config files because they are read only and I don't have permission to do that on the cloudera CDH virtual machine.
Thanks.
Created 02-19-2019 07:10 AM
Created 02-19-2019 05:52 PM
Hi Tomas, this is what the log file says:
18/Feb/2019 19:34:15 -0800] thrift_util INFO Thrift exception; retrying: TSocket read 0 bytes
[18/Feb/2019 19:34:16 -0800] thrift_util INFO Thrift exception; retrying: TSocket read 0 bytes
[18/Feb/2019 19:34:16 -0800] thrift_util WARNING Out of retries for thrift call: mutateRows
[18/Feb/2019 19:34:16 -0800] thrift_util INFO Thrift saw a transport exception: TSocket read 0 bytes
[18/Feb/2019 19:34:16 -0800] exceptions_renderable ERROR Potential trace: [('/usr/lib/hue/apps/hbase/src/hbase/api.py', 46, 'query', 'return getattr(self, action)(*args)'), ('/usr/lib/hue/apps/hbase/src/hbase/api.py', 253, 'bulkUpload', 'client.mutateRows(tableName, batches, None, doas=self.user.username)'), ('/usr/lib/hue/desktop/core/src/desktop/lib/thrift_util.py', 389, 'wrapper', 'raise StructuredThriftTransportException(e, error_code=502)')]
[18/Feb/2019 19:34:16 -0800] middleware INFO Processing exception: Api Error: TSocket read 0 bytes: Traceback (most recent call last):
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/transaction.py", line 371, in inner
return func(*args, **kwargs)
File "/usr/lib/hue/apps/hbase/src/hbase/views.py", line 79, in api_router
return api_dump(HbaseApi(request.user).query(*url_params))
File "/usr/lib/hue/apps/hbase/src/hbase/api.py", line 54, in query
raise PopupException(_("Api Error: %s") % error_msg)
PopupException: Api Error: TSocket read 0 bytes