一、配置步骤
1.和zookeeper集成,修改hue.ini
[zookeeper]
[[clusters]]
[[[default]]]
# Zookeeper ensemble. Comma separated list of Host/Port.
# e.g. localhost:2181,localhost:2182,localhost:2183
host_ports=hadoop:2181
2.和oozie集成
(1)修改oozie-site.xml(可以不做)
<property>
<name>oozie.processing.timezone</name>
<value>UTC</value>
</property>
(2)修改hue.ini
[liboozie]
# The URL where the Oozie service runs on. This is required in order for
# users to submit jobs. Empty value disables the config check.
oozie_url=http://hadoop:11000/oozie
# Requires FQDN in oozie_url if enabled
## security_enabled=false
# Location on HDFS where the workflows/coordinator are deployed when submitted.
remote_deployement_dir=/user/hadoop/oozie-apps/
[oozie]
# Location on local FS where the examples are stored.
local_data_dir=/opt/modules/oozie-4.1.0-cdh5.7.0/examples/
# Location on local FS where the data for the examples is stored.
sample_data_dir=/opt/modules/oozie-4.1.0-cdh5.7.0/oozie-apps
# Location on HDFS where the oozie examples and workflows are stored.
remote_data_dir=/user/hadoop/oozie-apps/
# Maximum of Oozie workflows or coodinators to retrieve in one API call.
## oozie_jobs_count=100
# Use Cron format for defining the frequency of a Coordinator instead of the old frequency number/unit.
enable_cron_scheduling=true
(3)启动oozie
bin/oozied.sh start
3.集成hbase
(1)启动hbase的thrift应用
在hbase目录下/opt/modules/hbase-1.2.0-cdh5.7.0运行
bin/hbase thrift start
(2)修改hue配置文件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:9090)
# HBase configuration directory, where hbase-site.xml is located.
hbase_conf_dir=/opt/modules/hbase-1.2.0-cdh5.7.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
(3)启动zookeeper/hmaster/hregionserver
二、测试
1.开启hdfs/yarn
2.开启zookeeper/hmaster/hregionserver
3.开启oozie
bin/oozied.sh start
4.开启hue
build/env/bin/supervisor