转自:http://hi.baidu.com/itdreams2009/blog/item/d4ceed341c7f4480a71e12e6.html
bin/hive --service hwi
10/02/23 22:57:42 INFO hwi.HWIServer: HWI is starting up
10/02/23 22:57:42 FATAL hwi.HWIServer: HWI WAR file not found at /home/hexianghui/testhadoop/hive/lib/hive-hwi-0.6.0.war
[hexianghui@hexianghui hive]$ bin/hive --service hwi
10/02/23 23:04:56 INFO hwi.HWIServer: HWI is starting up
10/02/23 23:04:56 INFO mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
10/02/23 23:04:56 INFO mortbay.log: jetty-6.1.14
10/02/23 23:04:56 INFO mortbay.log: Extract jar:file:/home/hexianghui/testhadoop/hive/lib/hive-hwi-0.6.0.war!/ to /tmp/Jetty_0_0_0_0_9999_hive.hwi.0.6.0.war__hwi__h5b7e3/webapp
10/02/23 23:04:57 INFO mortbay.log: Started SocketConnector@0.0.0.0:9999
hive的版本更新后,hive.hwi.war.file在hive-default.xml中的属性和值为:
<property>
<name>hive.hwi.war.file</name>
<value>lib/hive-hwi-0.6.0.war </value>
<description>This sets the path to the HWI war file, relative to ${HIVE_HOME}. </description>
</property>
注意在更改的时候,不要加上绝对路径,只需相对路径就可以了,否则会报错。