Hive: Hive Web Interface HWI

本文详细介绍了HiveWebInterface(HWI)和WebHCat的使用方法、特性及配置步骤,包括如何通过它们进行Hive命令操作、查询执行、应用部署等,并提供了启动、访问和安装指南。

The Hive Web Interface, abbreviated as HWI, is a simple graphical user interface (GUI). HWI is an alternative to using the Hive command line interface.

 

Another web interface that can be used for Hive commands is WebHCat, a REST API (not GUI). With WebHCat, applications can make HTTP requests to access the Hive metastore (HCatalog DDL) or to create and queue Hive queries and commands, Pig jobs, and MapReduce or YARN jobs (either standard or streaming). WebHCat was formerly named Templeton.

 

 

Features of HWI
  • Schema Browsing
  • Detached Query Execution
  • No Local Installation

 

Configuration

You should not need to edit the defaults for the Hive Web Interface. HWI uses:

<property>
  <name>hive.hwi.war.file</name>
  <value>lib/hive-hwi-0.12.0.war</value>
  <description>This sets the path to the HWI war file, relative to ${HIVE_HOME}. </description>
</property>

<property>
  <name>hive.hwi.listen.host</name>
  <value>0.0.0.0</value>
  <description>This is the host address the Hive Web Interface will listen on</description>
</property>

<property>
  <name>hive.hwi.listen.port</name>
  <value>9999</value>
  <description>This is the port the Hive Web Interface will listen on</description>
</property>

 

Start Up

export ANT_LIB=/usr/local/apache-ant-1.9.3/lib
bin/hive --service hwi
 
Java has no direct way of demonizing. In a production environment you should create a wrapper script.
nohup bin/hive --service hwi > /dev/null 2> /dev/null &

 

bin/hive --service hwi --help

 Note:Normally, when running a command using & and exiting the shell afterwards, the shell will terminate the sub-command with the hangup signal (kill -SIGHUP <pid>). This can be prevented using nohup, as it catches the signal and ignores it so that it never reaches the actual application.

 

 

Access

http://192.168.122.1:9999/hwi



 

 A: My hive server has not install java jdk.

a. download jdk-7u51-linux-x64.tar.gz

b. cp download/jdk-7u51-linux-x64.tar.gz  to /usr/lib/jvm

d. untar it to /usr/lib/jvm/jdk/jdk1.7.0_51

e. change JAVA_HOME=/usr/lib/jvm/jdk/jdk1.7.0_51  in /etc/bash.bashrc

f. cp /usr/lib/jvm/jdk/jdk1.7.0_51/lib/tools.jar  hive/lib/

 

 

 

 

References

https://cwiki.apache.org/confluence/display/Hive/HiveWebInterface

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值