hive0.13.1配置hwi

 

寻找hive-hwi-*.war文件
不清楚什么原因在hive0.13.1 版本中的lib 文件夹下没有hive-hwi-0.13.0.war, 也就是没有*.war 的文件。

所以用hive 0.12.0 版本中的hive-hwi-0.12.0.war 来代替,
将这个文件复制到hive 主目录的lib 下,并改为名hive-hwi-0.13.0.war

下载并解压安装ant
下载apache-ant-1.9.4-bin.tar.gz 解压后
并配置用户环境变量
export ANT_HOME=/home/hadoop/ant
export ANT_LIB=$ANT_HOME/lib 
export PATH=$ANT_HOME/bin:$PATH


复制tools.jar hive 目录下的lib 文件夹中
jdk 中的lib 文件夹下
[hadoop@cloud003 /usr/java/jdk1.7.0_60/lib]
$ cp tools.jar /home/hadoop/hive/lib/
 
如果没有做这一步会导致  打开网页时出现如下
Problem accessing /hwi/. Reason: 
    Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/java/jdk1.7.0_60/jre"
Caused by:
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/java/jdk1.7.0_60/jre"

配置hive-site.xml
 
中添加 
<property>  
     <name>hive.hwi.war.file</name>  
     <value>/lib/hive-hwi-0.13.0.war</value>  
    <description>This is theWAR file with the jsp content for Hive Web Interface</description>
</property> 

5 StartUp

bin/hive --service hwi 

6. 登录 查看web
<ignore_js_op> 
<ignore_js_op> 

转载于:https://www.cnblogs.com/onetwo/p/4233822.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值