Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

TSocket reads 0 bytes in Hue

New Contributor

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.


Master Collaborator
What is in the hue log?

New Contributor

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.


Master Collaborator

New Contributor

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/', 46, 'query', 'return getattr(self, action)(*args)'), ('/usr/lib/hue/apps/hbase/src/hbase/', 253, 'bulkUpload', 'client.mutateRows(tableName, batches, None, doas=self.user.username)'), ('/usr/lib/hue/desktop/core/src/desktop/lib/', 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/", 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/", line 371, in inner
    return func(*args, **kwargs)
  File "/usr/lib/hue/apps/hbase/src/hbase/", line 79, in api_router
    return api_dump(HbaseApi(request.user).query(*url_params))
  File "/usr/lib/hue/apps/hbase/src/hbase/", line 54, in query
    raise PopupException(_("Api Error: %s") % error_msg)
PopupException: Api Error: TSocket read 0 bytes

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.