1.修改hive-site.xml
<property>
<name>hive.server2.thrift.bind.host</name>
<value>hadoop</value>
</property>
<property>
<name>hive.metastore.uris</name>
<value>thrift://hadoop:9083</value>
<description>Thrift URI for the remote metastore. Used by metastore client to connect to remote metastore.</description>
</property>
2.简单测试hiveserver2和metastore是否正常启动
(1)启动hiveserver2和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