简体   繁体   English

hive-site.xml:元素类型“configuration”必须由匹配的end-tag终止“ </configuration> ”

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

I'm trying to install Hive on a Ubuntu system, for the sake of practicing/learning. 我正在尝试在Ubuntu系统上安装Hive,以便练习/学习。 I'm following a set of pre-written instructions. 我正在遵循一套预先写好的指示。 It says to test the Hive installation by going to $HIVE_HOME and running bin/hive. 它说通过转到$ HIVE_HOME并运行bin / hive来测试Hive安装。 When I do, I get a rather large dump of text, but I think the salient bit is as follows: 当我这样做时,我得到一个相当大的文本转储,但我认为重要的一点如下:

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

I've gone to line 2787 and it is actually the </configuration> tag. 我已经去了第2787行,它实际上是</configuration>标签。 I did not edit any of the tags in hive-site.xml. 我没有编辑hive-site.xml中的任何标记。 The only thing I did was take the following section: 我唯一做的就是采取以下部分:

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

And change it to: 并将其更改为:

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

I only edited the text between the "value" tags, without altering the tags themselves. 我只编辑了“value”标签之间的文本,而没有改变标签本身。 Maybe the format is incorrect? 也许格式不正确? Any help would be appreciated. 任何帮助,将不胜感激。

The file is located here, if anyone wants to take a look at it: 该文件位于此处,如果有人想看一下:

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

You have a missing <property> opening tag, just before <name>hive.mapjoin.optimized.hashtable</name> 您在<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.

相关问题 元素类型“标签”必须以匹配的结束标签“</tag> ” - The element type "tag" must be terminated by the matching end-tag "</tag>" 无法解析配置:hibernate.cfg.xml:元素类型“ session-factory”必须由匹配的结束标记“ </session-factory> ” - Could not parse configuration: hibernate.cfg.xml: The element type “session-factory” must be terminated by the matching end-tag “</session-factory>” 元素类型“META”必须以匹配的结束标签“</META> ” - The element type “META” must be terminated by the matching end-tag “</META>” 元素类型 X 必须由匹配的结束标记终止 - The element type X must be terminated by the matching end-tag SaxParseException 元素类型“hr”必须由匹配的结束标记“终止</hr> “。在使用 jaxb 读取 xml 时 - SaxParseException The element type "hr" must be terminated by the matching end-tag "</hr>". while reading xml with jaxb XML CDATA错误:元素类型 <X> 必须以匹配的结束标签终止 </X> - XML CDATA error: The element type <X> must be terminated by the matching end-tag </X> 元素类型“ META”必须以匹配的结束标记“ </META> ”。 使用XSL从XML文件生成PDF时 - The element type “META” must be terminated by the matching end-tag “</META>”. while generating PDF from XML file using XSL 元素类型“xsd:schema”必须由匹配的结束标签“”终止 - The element type “xsd:schema” must be terminated by the matching end-tag “</xsd:schema>” 元素类型“xsd:sequence”必须由匹配的结束标签“”终止 - The element type “xsd:sequence” must be terminated by the matching end-tag “</xsd:sequence>” Digester:元素类型“user”必须由匹配的结束标签“”终止 - Digester: The element type “user” must be terminated by the matching end-tag “</user>”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM