"-6ren"> "-为了练习/学习,我正在尝试在 Ubuntu 系统上安装 Hive。我正在遵循一组预先编写的说明。它说通过转到 $HIVE_HOME 并运行 bin/hive 来测试 Hive 安装。当我这样做时,我得-6ren">
gpt4 book ai didi

xml - 配置单元-site.xml : The element type "configuration" must be terminated by the matching end-tag ""

转载 作者:可可西里 更新时间:2023-11-01 15:56:00 26 4
gpt4 key购买 nike

为了练习/学习,我正在尝试在 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>

我只编辑了“值”标签之间的文本,而没有改变标签本身。也许格式不正确?任何帮助将不胜感激。

该文件位于此处,如果有人想看一下:

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

最佳答案

您缺少一个 <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>

关于xml - 配置单元-site.xml : The element type "configuration" must be terminated by the matching end-tag "</configuration>",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43823987/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com