hue 集成hive


一、hive

1、修改hive配置

在hive-site.xml文件添加如下信息:

<property>
     <name>hive.server2.thrift.port</name>
     <value>10000</value>
</property>
<property>
     <name>hive.server2.thrift.bind.host</name>
     <value>yjt</value>
</property>

<property>
    <name>hive.metastore.uris</name>
    <value>thrift://yjt:9083</value>
</property>

<property>
    <name>hive.server2.long.polling.timeout</name>
    <value>5000</value>
</property>

2、啟動hive

[hduser@yjt conf]$ hive --service metastore &
[hduser@yjt conf]$ hive --service hiveserver2 &

稍等片刻,看10000端口是否監聽上

[hduser@yjt conf]$ netstat -ntulp |grep 10000 
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN      31813/java          

二、修改hue配置

vim desktop/conf/hue.ini

[beeswax]


   hive_server_host=yjt

  hive_server_port=10000
   hive_conf_dir=/data1/hadoop/hive/conf

重啟hue

 

三、訪問web界面

 

 

 借鑒:

https://www.jianshu.com/p/93136579d4d4


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM