繁体   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