啓動hive hwi服務時出現 HWI WAR file not found錯誤

/hive --service hwi web

[niy@niy-computer /]$ $HIVE_HOME/bin/hive --service  hwi
13/04/26 00:21:17 INFO hwi.HWIServer: HWI is starting up
13/04/26 00:21:18 FATAL hwi.HWIServer: HWI WAR file not found at /usr/local/hive/usr/local/hive/lib/hive-hwi-0.12.0-SNAPSHOT.war

能夠看出/usr/local/hive/usr/local/hive/lib/hive-hwi-0.12.0-SNAPSHOT.war 確定 不是正確路徑,真正路徑是/usr/local/hive/lib/hive-hwi-0.12.0-SNAPSHOT.war 瀏覽器

判定是配置的問題 app


解決辦法

將hive-default.xml中關於 hwi的設置拷貝到hive-site.xml中便可 webapp

 
  1. <property>  
  2.   <name>hive.hwi.war.file</name>  
  3.   <value>lib/hive-hwi-0.12.0-SNAPSHOT.war</value>  
  4.   <description>This sets the path to the HWI war file, relative to ${HIVE_HOME}. </description>  
  5. </property>  
  6.   
  7. <property>  
  8.   <name>hive.hwi.listen.host</name>  
  9.   <value>0.0.0.0</value>  
  10.   <description>This is the host address the Hive Web Interface will listen on</description>  
  11. </property>  
  12.   
  13. <property>  
  14.   <name>hive.hwi.listen.port</name>  
  15.   <value>9999</value>  
  16.   <description>This is the port the Hive Web Interface will listen on</description>  
  17. </property>  

再次運行上面的命令 ui

[niy@niy-computer hive]$ bin/hive --service hwi 
13/04/26 00:24:51 INFO hwi.HWIServer: HWI is starting up
13/04/26 00:24:51 INFO mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
13/04/26 00:24:51 INFO mortbay.log: jetty-6.1.14
13/04/26 00:24:51 INFO mortbay.log: Extract jar:file:/home/niy/workspace1/hive/trunk/build/dist/lib/hive-hwi-0.12.0-SNAPSHOT.war!/ to /tmp/Jetty_0_0_0_0_9999_hive.hwi.0.12.0.SNAPSHOT.war__hwi__.bt0qvz/webapp
13/04/26 00:24:52 INFO mortbay.log: Started SocketConnector@0.0.0.0:9999 spa

這時打開瀏覽器,輸入 xml

http://localhost:9999/hwi ip

便可驗證服務已正常開啓 it

相關文章
相關標籤/搜索