Hue HBase API错误:无

时间:2015-07-01 04:30:12

标签: hadoop hbase hue

当我在hue中使用HBase的Web UI时,我只收到一条错误消息:API错误:无,并且日志显示:

add_action('woocommerce_cart_calculate_fees', 'woo_add_cart_fee');

和hue.ini中的配置是

[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

和thrift端口是9290(hbase.regionserver.thrift.port),启用HBase Thrift Server Framed Transport为false(hbase.regionserver.thrift.framed)

2 个答案:

答案 0 :(得分:1)

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

您是否确保在hue.ini中选择了'framed'?

[hbase]
thrift_transport=framed

如何设置HBase Browseruse it with Security

答案 1 :(得分:0)

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)重新启动色调服务器