javax.jdo.option.ConnectionURL配置的问题
2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
????Hive安裝過(guò)程中出現(xiàn)?The?reference?to?entity?"createDatabaseIfNotExist"?must?end?with?the?';'?delimiter.問(wèn)題,具體如下所示:
[Fatal?Error]?hive-site.xml:132:95:?The?reference?to?entity?"createDatabaseIfNotExist"?must?end?with?the?';'?delimiter.
14/10/23?11:15:04?FATAL?conf.Configuration:?error?parsing?conf?file:/usr/local/apache-hive-0.13.1-bin/conf/hive-site.xml
org.xml.sax.SAXParseException;?systemId:?file:/usr/local/apache-hive-0.13.1-bin/conf/hive-site.xml;?lineNumber:?132;?columnNumber:?95;?The?reference?to?entity?"createDatabaseIfNotExist"?must?end?with?the?';'?delimiter.
????因?yàn)?span style="font-family:'Times New Roman';">hive-site.xml中的javax.jdo.option.ConnectionURL配置項(xiàng)引起的,如下所示:
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost:3306/hive_hdp?characterEncoding=UTF-8&createDatabaseIfNotExist=true</value>
<description>JDBC?connect?string?for?a?JDBC?metastore</description>
</property>
????正確配置如下:
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost:3306/hive_hdp?characterEncoding=UTF-8&createDatabaseIfNotExist=true</value>
<description>JDBC?connect?string?for?a?JDBC?metastore</description>
</property>
????這是因?yàn)?span style="font-family:'Times New Roman';">xml文件中的編碼規(guī)則引起的。
????在xml文件中有以下幾類(lèi)字符要進(jìn)行轉(zhuǎn)義替換如下表所示:
????所以javax.jdo.option.ConnectionURL項(xiàng)中的&符號(hào)需要用&表示。
轉(zhuǎn)載于:https://my.oschina.net/u/1169607/blog/336628
總結(jié)
以上是生活随笔為你收集整理的javax.jdo.option.ConnectionURL配置的问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 【 Grey Hack 】万金油脚本:常
- 下一篇: 2021 五一数学建模 赛题思路