Hue HBase API Error: None

Hue HBase API Error: None

当我在 hue 中使用 The Web UI for HBase 时,我得到一个错误消息:API Error: None,并且日志显示:

[30/Jun/2015 21:16:30 +0000] access       INFO     114.112.124.241 admin - "GET /hbase/ HTTP/1.0"
[30/Jun/2015 21:16:31 +0000] access       INFO     114.112.124.241 admin - "POST /hbase/api/getClusters HTTP/1.0"
[30/Jun/2015 21:16:31 +0000] access       INFO     114.112.124.241 admin - "GET /debug/check_config_ajax HTTP/1.0"
[30/Jun/2015 21:16:31 +0000] access       INFO     114.112.124.241 admin - "POST /hbase/api/getTableList/HBase HTTP/1.0"
[30/Jun/2015 21:16:31 +0000] thrift_util  INFO     Thrift exception; retrying: None
[30/Jun/2015 21:16:31 +0000] thrift_util  INFO     Thrift exception; retrying: None
[30/Jun/2015 21:16:31 +0000] thrift_util  WARNING  Out of retries for thrift call: getTableNames
[30/Jun/2015 21:16:31 +0000] thrift_util  INFO     Thrift saw a transport exception: None
[30/Jun/2015 21:16:31 +0000] middleware   INFO     Processing exception: Api Error: None: Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-4.7.1-1.cdh4.7.1.p0.47/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/handlers/base.py", line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/opt/cloudera/parcels/CDH-4.7.1-1.cdh4.7.1.p0.47/share/hue/apps/hbase/src/hbase/views.py", line 65, in api_router
    return api_dump(HbaseApi().query(*url_params))
  File "/opt/cloudera/parcels/CDH-4.7.1-1.cdh4.7.1.p0.47/share/hue/apps/hbase/src/hbase/api.py", line 48, in query
    raise PopupException(_("Api Error: %s") % e.message)
PopupException: Api Error: None

hue.ini 中的配置是

[hbase]
hbase_clusters=(Cluster|ip-172-31-13-29.cn-north-1.compute.internal:9290)

thrift 端口为 9290 (hbase.regionserver.thrift.port),Enable HBase Thrift Server Framed Transport 为 false (hbase.regionserver.thrift.framed)

您使用的是 Thrift Server v1(而不是 v2)吗?

您确定在 hue.ini 中也选择了 'framed' 吗?

[hbase]
thrift_transport=framed

如何设置 HBase Browser and use it with Security

HBASE VERSION 1.4.6
HUE VERSION 4.2.0

我 运行 聚集在 HBASE AWS EMR

解决问题

1) 在HBASE的主节点上启动thrift1。默认端口为 9090 或确保其 运行

./bin/hbase-daemon.sh start thrift -p PORT_NUMBER

2) 更改 hui.inipseudo-distributed.ini 配置设置

[hbase]

  hbase_clusters=(Cluster|MASTER_IP_OR_STANDALONE_IP:9090)

  # Copy these files from where hbase is installed in case of distributed hbase. 
  # Like hbase-site.xml , hbase-policy.xml and regionalservers file
  hbase_conf_dir=PATH_OF_HBASE_CONFIG_FILES

  # 'buffered' used to be the default of the HBase Thrift Server.
  thrift_transport=buffered

3) 重启色调服务器