hue(3):HueとHiveの統合
1.hive-siteを修正する.xml
hive.server2.thrift.bind.host
hadoop
hive.metastore.uris
thrift://hadoop:9083
Thrift URI for the remote metastore. Used by metastore client to connect to remote metastore.
2.hiveserver 2とmetastoreが正常に起動しているかどうかを簡単にテスト
(1)hiveserver 2とmetastoreを起動する:
bin/hive --service metastore &
bin/hive --service hiveserver2 &
(2)bin/lineの起動
bin/beeline
!connect jdbc:hive2://hadoop:10000
3.Hueを構成する.ini
[beeswax]
# Host where HiveServer2 is running.
# If Kerberos security is enabled, use fully-qualified domain name (FQDN).
hive_server_host=hadoop
# Port where HiveServer2 Thrift server runs on.
hive_server_port=10000
# Hive configuration directory, where hive-site.xml is located
hive_conf_dir=/opt/modules/hive-1.1.0-cdh5.7.0/conf
4.Hueの起動
(1)hdfs (2)yarn (3)hive
(4)hue
build/env/bin/supervisor