1. 配置HBase
Hue需要讀取HBase的數據是使用thrift的方式,默認HBase的thrift服務沒有開啓,所有需要手動額外開啓thrift 服務。
thrift service默認使用的是9090端口,使用如下命令查看端口是否被佔用
$ netstat -nl|grep 9090
啓動thrift service
$ hbase-daemon.sh start thrift
2. 配置Hue
修改【HUE_HOME/desktop/conf/】目錄下的hue.ini文件中[hbase]中的配置
# Comma-separated list of HBase Thrift servers for clusters in the format of '(name|host:port)'.
# Use full hostname with security.
hbase_clusters=(Cluster|hadoop-slave1.dimensoft.com.cn:9090)
# HBase configuration directory, where hbase-site.xml is located.
hbase_conf_dir=/usr/local/cdh-5.2.0/hbase-0.98.6/conf
高能預警:hbase_clusters參數值中的Cluster只是在Hue的界面中顯示的集羣名稱而已,可以修改成自己需要的。
3. 啓動Hue
進入【HUE_HOME】下啓動Hue
$ build/env/bin/supervisor
訪問Hue的Web 界面http://hadoop-main.dimensoft.com.cn:8888/