Support Questions
Find answers, ask questions, and share your expertise

Hbase browser showing Api Error: TSocket read 0 bytes in hue

New Contributor

I have installed Hue 3.8.1 on EC2 three node cluster. But while opening hbase browser on hue it is showing ” Api Error: TSocket read 0 bytes”… Even Hbase thrift server is up and running in all three nodes… thrift_transport=framed… and hbase.regionserver.thrift.server.type is TThreadPoolServer… Could you please help to get out from this….

2 REPLIES 2

Re: Hbase browser showing Api Error: TSocket read 0 bytes in hue

Super Collaborator

Which version of hbase do you deploy ?

thrift version used by hbase is likely 0.9.3

Does Hue use compatible thrift version ?

Can you post the whole stack trace ?

Thanks

Re: Hbase browser showing Api Error: TSocket read 0 bytes in hue

New Contributor

thank for your reply...

HBase version 1.1.2.2.4.2.0-258,

hbase-thrift version -1.1.2.2.4.2.0-258.el6.noarch

and error log is

[01/Sep/2016 08:28:56 -0700] access WARNING 49.204.22.38 admin - "GET /logs HTTP/1.1"

[01/Sep/2016 08:28:49 -0700] middleware INFO Processing exception: Api Error: TSocket read 0 bytes: Traceback (most recent call last): File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py", line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/transaction.py", line 371, in inner return func(*args, **kwargs) File "/usr/local/hue/apps/hbase/src/hbase/views.py", line 76, in api_router return api_dump(HbaseApi(request.user).query(*url_params)) File "/usr/local/hue/apps/hbase/src/hbase/api.py", line 54, in query raise PopupException(_("Api Error: %s") % e.message) PopupException: Api Error: TSocket read 0 bytes

[01/Sep/2016 08:28:49 -0700] thrift_util INFO Thrift saw a transport exception: TSocket read 0 bytes

[01/Sep/2016 08:28:49 -0700] thrift_util WARNING Out of retries for thrift call: getTableNames

[01/Sep/2016 08:28:49 -0700] thrift_util DEBUG Thrift call: hbased.Hbase.Client.getTableNames(args=(), kwargs={'doas': u'admin'})

[01/Sep/2016 08:28:49 -0700] thrift_util INFO Thrift exception; retrying: TSocket read 0 bytes

[01/Sep/2016 08:28:49 -0700] thrift_util DEBUG Thrift call: hbased.Hbase.Client.getTableNames(args=(), kwargs={'doas': u'admin'})

[01/Sep/2016 08:28:49 -0700] thrift_util INFO Thrift exception; retrying: TSocket read 0 bytes

[01/Sep/2016 08:28:49 -0700] thrift_util DEBUG Thrift call: hbased.Hbase.Client.getTableNames(args=(), kwargs={'doas': u'admin'})

[01/Sep/2016 08:28:49 -0700] access INFO 49.204.22.38 admin - "POST /hbase/api/getTableList/ip-172-31-15-183.ec2.internal HTTP/1.1"

[01/Sep/2016 08:28:48 -0700] resource DEBUG GET Got response: {"apps":null}

[01/Sep/2016 08:28:48 -0700] connectionpool DEBUG "GET /ws/v1/cluster/apps?user=admin&finalStatus=UNDEFINED HTTP/1.1" 200 None

For more details please look into the attachment...hue-147274399315.txt