本文主要是介绍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 locatedhive_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(3):Hue与Hive集成的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!