【问题标题】:Hue HBase API Error: None色调 HBase API 错误:无
【发布时间】:2015-07-01 04:30:12
【问题描述】:

当我在hue中使用HBase的Web UI时,我只是得到一个错误信息: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)

【问题讨论】:

    标签: hadoop hbase hue


    【解决方案1】:

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

    您是否确保在 hue.ini 中也选择了“框架”?

    [hbase]
    thrift_transport=framed
    

    如何设置HBase Browseruse it with Security

    【讨论】:

    • 1.我检查了hbase配置,看到“启用HBase Thrift Server Framed Transport”属性没有选中,所以我不需要在hue.ini中选择'thrift_transport=framed'。我尝试在hue.ini中选择'thrift_transport=framed',它不像以前那样出现错误
    • 2.我在 hbase 配置中选择 'hbase.regionserver.thrift.framed=false' 并删除 'thrift_transport=framed',它不能像以前一样工作
    • 我用cloudera manager4.7.1安装cdh4.7.1,如何查看thrift版本?
    • thrift 版本是 0.9.0,我在 'thrift/Hbase.thrift' 中看到了 'namespace cpp apache.hadoop.hbase.thrift'。我看到了 'org/apache/hadoop/hbase /thrift' 和 'org/apache/hadoop/hbase/thrift2',所以我使用 Thrift Server v1
    • 如果使用 CM,只要在 Hue 配置选项卡中检查了 HBase 和 HBase Thrift 服务,它就可以正常工作。你在使用安全吗? Thrift 或 HBase 日志中有任何信息吗?如果 Thrift 服务器仍然启动?
    【解决方案2】:
    HBASE VERSION 1.4.6
    HUE VERSION 4.2.0
    

    我在AWS EMR 上运行集群HBASE

    解决问题

    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) 重启hue服务器

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-20
      • 2011-09-03
      • 2016-07-14
      • 2011-07-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多