- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hue hbase Api Error: TSocket read 0 bytes
- Labels:
-
Apache HBase
-
Cloudera Hue
Created on ‎10-30-2014 11:05 AM - edited ‎09-16-2022 02:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After enabling hbase
Created ‎10-31-2014 11:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved -
Cannot use Thrift2
Enable HBase Thrift Server Framed Transport hbase.regionserver.thrift.framed true
HBase Thrift Server Type hbase.regionserver.thrift.server.type must be TThreadPoolServer
cannot use THsHaServer or TNonblockingServer or framed transport
Created ‎12-29-2014 08:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You do not need to add anything to hue.ini (Cloudera Manager configures this for you).
Suspect some dependency is not right when you added Hue. Can you delete and add Hue service again with proper dependencies?
Created ‎12-29-2014 09:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
service in CM.
Romain
Created ‎02-11-2015 02:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Romain
I have a Cloudera manager 5.2 cluster with one namenode and three datanodes.I have encountered a similar issue (Api Error: TSocket read 0 bytes) while starting hbase in hue.I have followed your blog and have made required changes but still the issue is not resolved.I have deployed thrift instance and region server for datanode and namenode in hbase.I have tried reinstalling hue but failed. All service are working independently from command line Ex hbase shell,impala-shell etc. Could you please help me to resolve this issue.?
Created ‎02-11-2015 05:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Go to the http://<hueserver>:<port>/desktop/dump_config and in the "Configuration Sections and Variables" section go to hbase and confirm that "hbase_clusters" points to the correct thrift server. If that's not correct, confirm in the Hue service-wide config that you have the Hbase service selected. If that is correct, then go to the Hbase service configuration and check to see if this property is enabled, "Enable HBase Thrift Server Framed Transport". If it is, try unchecking it and restarting the Hbase thrift server and see if that works.
Created ‎02-11-2015 10:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you CConner. The above solution works.
I ensured again that the correct Hbase Thrift server was being used. I then went to the Hbase Thrift server Configuration, unchecked the "Enable Hbase Thrift Server Framed Transport" (hbase.regionserver.thrift.framed) and restarted the Thrift server. It was only after this that the "Api socket error" on Hue disappeared and I was able to view the Hbase tables on Hue.
Appreciate all your help!
Regards,
Yogesh
Created ‎02-11-2015 10:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Glad to hear that worked! Hue doesn't currently support Framed Thrift to Hbase. It's on the roadmap, but not sure when.
Created ‎02-11-2015 10:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
'framed' should work be it would need to be set in the Hue config too:
[hbase]
...
# 'buffered' is the default of the HBase Thrift Server and supports
security.
# 'framed' can be used to chunk up responses,
# which is useful when used in conjunction with the nonblocking server in
Thrift.
## thrift_transport=buffered
Romain
Created ‎02-12-2015 06:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I done same changes, but still not working please let me know still need to change more.
Created ‎02-12-2015 08:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎02-13-2015 01:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please tell me where need to attach the files. I can see there only image files there.
When i am copying entire files content its throwing please enter valied URI .Please let me know how share files.
