簡體   English   中英

hive-site.xml:元素類型“configuration”必須由匹配的end-tag終止“ </configuration> ”

[英]hive-site.xml: The element type “configuration” must be terminated by the matching end-tag “</configuration>”

我正在嘗試在Ubuntu系統上安裝Hive,以便練習/學習。 我正在遵循一套預先寫好的指示。 它說通過轉到$ HIVE_HOME並運行bin / hive來測試Hive安裝。 當我這樣做時,我得到一個相當大的文本轉儲,但我認為重要的一點如下:

**[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>

我只編輯了“value”標簽之間的文本,而沒有改變標簽本身。 也許格式不正確? 任何幫助,將不勝感激。

該文件位於此處,如果有人想看一下:

http://www.vaughn-s.net/hadoop/hive-site.xml

您在<name>hive.mapjoin.optimized.hashtable</name>之前缺少<property>開始標記

<property>
  <name>hive.lazysimple.extended_boolean_literal</name>
  <value>false</value>
  <description>
    LazySiimpleSerde uses this properties to determine if it treats 'T', 't', 'F', 'f',
    '1', and '0' as extened, legal boolean literal, in addition to 'TRUE' and 'FALSE'.
    The default is false, which means only 'TRUE' and 'FALSE' are treated as legal
    boolean literal.
  </description>
</property>
  <name>hive.mapjoin.optimized.hashtable</name>
  <value>true</value>
  <description>Whether Hive should use memory-optimized hash table for MapJoin. Only works on Tez, because memory-optimized hashtable cannot be serialized.</description>
</property>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM