hive-site.xml:元素类型“配置”必须由匹配结束标记“”终止

问题描述:

我试图在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

+0

重新启动'HiveServer2 '也许 – philantrovert

+0

感谢您的意见。我尝试了链接,它确实进入了网页浏览器的空白页面 - 可能是因为内部标签存在问题。如果你保存并用文本编辑器打开它,你可以在那里看到内容。 我确实重启了Hive服务器,但仍然出现错误。我还相信,Hadoop的服务正在运行: 根@ Ubuntu的:/#JPS 2242 NameNode的 4291 JPS 2373的DataNode 2854节点管理器 2729 ResourceManager的 2585 SecondaryNameNode –

你有一个失踪<property>开始标记,就在<name>hive.mapjoin.optimized.hashtable</name>

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

谢谢!这摆脱了错误。我现在正在收到一个jdbc错误,但我会谷歌它,看看发生了什么。 –

+0

明白了,谢谢 –