hue(5):Hue與zookeeper、oozie、Hbase整合
阿新 • • 發佈:2018-12-15
一、配置步驟
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