Can't get Hue running with HBase Thrift without API authentication
See original GitHub issueI tried running it and got stuck. The thing is that I have disabled authentication for HBase Thrift, and I have no problem running HBase commands via Thrift API by using happybase
Python package.
However, Hue displays error “API: Timeout error”, and I am not sure what is the reason behind it.
hue_1 | 172.18.0.1 - - [29/May/2018 06:15:48] "POST /hbase/api/getClusters HTTP/1.1" 200 -
hue_1 | 172.18.0.1 - - [29/May/2018 06:16:18] "POST /hbase/api/getTableList/Cluster HTTP/1.1" 500
Stack trace for failed request
/hue/apps/hbase/src/hbase/api.py, getTableList, Line 141:
return [{'name': name, 'enabled': client.isTableEnabled(name, doas=self.user.username)} for name in client.getTableNames(doas=self.user.username)]
/hue/desktop/core/src/desktop/lib/thrift_util.py, wrapper, Line 386:
raise StructuredException('THRIFTSOCKET', str(e), data=None, error_code=502)
hbase-site.xml
<configuration>
<property>
<name>hbase.zookeeper.quorum</name>
<value>hbase</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>file:////data/hbase</value>
</property>
<property>
<name>hbase.master.info.bindAddress</name>
<value>hbase</value>
</property>
<property>
<name>hbase.regionserver.info.bindAddress</name>
<value>hbase</value>
</property>
</configuration>
http://localhost:9095/thrift.jsp is showing information that API is up and running.
HBase Version | 1.2.4 Thrift 1.x
hue.ini is same as in https://github.com/cloudera/hue/blob/master/desktop/conf.dist/hue.ini except that I have next config for Hbase
[hbase]
# Comma-separated list of HBase Thrift servers for clusters in the format of '(name|host:port)'.
# Use full hostname with security.
# If using Kerberos we assume GSSAPI SASL, not PLAIN.
hbase_clusters=(Cluster|hbase:9090)
# HBase configuration directory, where hbase-site.xml is located.
hbase_conf_dir=/hue/desktop/conf/
# Hard limit of rows or columns per row fetched before truncating.
## truncate_limit = 500
# 'framed' is used to chunk up responses, which is useful when used in conjunction with the nonblocking server in Thrift.
# 'buffered' used to be the default of the HBase Thrift Server.
## thrift_transport=framed
# use_doas=true
Is it possible to run Hue HBase Browser without Kerberos?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Unable to authenticate to Hbase when using Hue | 6.3.x
Go to Clusters > HBase service > Instances and note the hostname of the host on which the HBase Thrift Server is running....
Read more >Can't access Hbase through Hue
HBase Browser Failed to authenticate to HBase Thrift Server, check authentication configurations. When I go to Hbase, it shows api error <html>.
Read more >HBase Browsing with doAs impersonation and Kerberos
We assume that you have installed an HBase Thrift Server in your cluster. If using Cloudera Manager, go to the list of instances...
Read more >Hue is failing for some users after HDP 2.6 upgrade.
Half the users are able to access the Hue service without any issue and ... conf ERROR The application won't work without a...
Read more >Configure HBase - Amazon EMR
HBase is not running as a YARN application, thus it is necessary to recalculate the memory allocated to YARN and its applications, which...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The hbase THRIFT_TRANSPORT is “framed” in the latest version hue which correspond to TNonblockingServer. But the default hbase thrift server is TThreadPoolServer, THRIFT_TRANSPORT should be “buffered”. After change THRIFT_TRANSPORT to “buffered” in /opt/cloudera/parcels/CDH/lib/hue/apps/hbase/src/hbase, it works. Or maybe you can change the hbase thrift server to TNonblockingServer in cloudera hbase configration.
I have the same issue, too. When I set the
thrift_transport=buffered
in thedesktop/conf/pseudo-distributed.ini
file, it worked fine for me. Thank you, @buendiya.I appreciate your help.