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.jarhive目录下的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> 

StartUp

bin/hive --service hwi 

6. 登录 查看web
<ignore_js_op> 
<ignore_js_op> 
原文地址:https://www.cnblogs.com/onetwo/p/4233822.html