Can't access to hwi due to No Java compiler available

Hive 开启WEB Ui接口

hive --service hwi

在浏览器访问报错了http://master:9999/hwi/

查阅资料后发现hive依赖apache ant

https://issues.apache.org/jira/browse/HIVE-5132

具体操作步骤:

拷贝ANT_HOME/lib目录下的jar到HIVE_HOME/lib目录下

ant-launcher.jar
ant.jar

拷贝JAVA_HOME/lib/tools.jar到HIVE_HOME/lib目录下

设置ANT_LIB

export ANT_LIB=/opt/ant-1.9.3/lib

启动

hive --service hwi

浏览器访问http://master:9999/hwi/

参考链接

https://issues.apache.org/jira/browse/HIVE-5132
http://www.rritw.com/a/JAVAbiancheng/ANT/20130518/312317.html
http://blog.csdn.net/aaa1117a8w5s6d/article/details/16981501