1. 程式人生 > >hue(3):Hue與Hive整合

hue(3):Hue與Hive整合

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