寻找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文件夹下
[[email protected] /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>hive0.13.1配置hwi 
<ignore_js_op>hive0.13.1配置hwi 

相关文章:

  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-01-29
  • 2022-01-07
  • 2021-08-24
猜你喜欢
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-06-28
  • 2021-07-05
相关资源
相似解决方案