我試圖在Ubuntu系統上安裝Hive,以便練習/學習。我遵循一套預先寫好的說明。它表示通過轉到$ HIVE_HOME並運行bin/hive來測試Hive安裝。當我這樣做,我得到一個相當大的存文本的,但我認爲突出的位如下:hive-site.xml:元素類型「配置」必須由匹配結束標記「</ configuration>」終止
**[Fatal Error] hive-site.xml:2787:3: The element type "configuration" must be terminated by the matching end-tag "</configuration>".
17/05/06 10:46:12 FATAL conf.Configuration: error parsing conf file:/usr/local/hive/conf/hive-site.xml
org.xml.sax.SAXParseException; systemId: file:/usr/local/hive/conf/hive-site.xml; lineNumber: 2787; columnNumber: 3; The element type "configuration" must be terminated by the matching end-tag "</configuration>".**
我去了線2787,它實際上是</configuration>
標籤。我沒有編輯hive-site.xml中的任何標籤。我做的唯一的事情就是採取以下部分:
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:derby:;databaseName=/usr/local/hive/metastore_db;create=true</value>
<description>JDBC connect string for a JDBC metastore </description>
</property>
並將其更改爲:
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:derby://localhost:1527/metastore_db;create=true </value>
<description>JDBC connect string for a JDBC metastore </description>
</property>
我只是編輯的「價值」標籤之間的文本,無需改變標籤本身。也許格式不正確?任何幫助,將不勝感激。
該文件位於這裏,如果有人想看看它:
http://www.vaughn-s.net/hadoop/hive-site.xml
重新啓動'HiveServer2 '也許 – philantrovert
感謝您的意見。我嘗試了鏈接,它確實進入了網頁瀏覽器的空白頁面 - 可能是因爲內部標籤存在問題。如果你保存並用文本編輯器打開它,你可以在那裏看到內容。 我確實重啓了Hive服務器,但仍然出現錯誤。我還相信,Hadoop的服務正在運行: 根@ Ubuntu的:/#JPS 2242 NameNode的 4291 JPS 2373的DataNode 2854節點管理器 2729 ResourceManager的 2585 SecondaryNameNode –