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.简单测试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

 

你可能感兴趣的:(大数据开发,hue)