Hadoop 管理工具HUE配置-HBase配置

1 前言

首先要陪只好HBase,能夠參見http://www.cnblogs.com/liuchangchun/p/4096891.html,徹底分佈式相似html

 

2 HBase配置

2.1 HUE 配置文件設置,找到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=(Cluster1|spark-1421-0002:9090)

  # HBase configuration directory, where hbase-site.xml is located.
  hbase_conf_dir=/home/hadoop/software/cloud/hbase-1.0.0/conf

  # Hard limit of rows or columns per row fetched before truncating.
  ## truncate_limit = 500

  # '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

2.2 HBase配置文件修改,須要在hbase-site.xml中增長一些東西

          <property>
              <name>hbase.thrift.support.proxyuser</name>
              <value>true</value>
          </property>

          <property>
              <name>hbase.regionserver.thrift.http</name>
              <value>true</value>
          </property>

爲何要添加這些東西,由於HUE要訪問HBase的thrift服務,參見:http://gethue.com/hbase-browsing-with-doas-impersonation-and-kerberos/分佈式

2.3 須要啓動HBase的thrift服務

hbase-daemon.sh start thrift2
相關文章
相關標籤/搜索