本篇部落格,小菌為大家帶來的是Hue內建Hbase的分享。
1.修改hbase配置
在
hbase-site.xml
配置檔案中的添加如下内容,開啟hbase thrift服務。
修改完成之後scp給其他機器上hbase安裝包。
<property>
<name>hbase.thrift.support.proxyuser</name>
<value>true</value>
</property>
<property>
<name>hbase.regionserver.thrift.http</name>
<value>true</value>
</property>
2.修改hadoop配置
core-site.xml
中確定 HBase被授權代理,添加下面内容。
把修改之後的配置檔案scp給其他機器和hbase安裝包conf目錄下。
<property>
<name>hadoop.proxyuser.hbase.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.hbase.groups</name>
<value>*</value>
</property>
如果在安裝hbase時,conf目錄下的core-site.xml采用的軟連接配接的方式,這一步的配置檔案分發就不需要發送至hbase安裝包conf目錄下
3.修改Hue配置
cd /export/servers/hue-3.9.0-cdh5.14.0/desktop/conf
vim hue.ini 大約在1244行
修改如下部分内容
[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.
## node01你的安裝hbase的主節點
hbase_clusters=(Cluster|node01:9090)
# HBase configuration directory, where hbase-site.xml is located.
# ## 你的hbase的安裝配置路徑
hbase_conf_dir=/export/servers/hbase-1.2.0-cdh5.14.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
4.啟動hbase(包括thrift服務),hue
需要啟動hdfs和hbase,然後再啟動thrift。
start-dfs.sh
start-hbase.sh
hbase-daemon.sh start thrift