javax.jdo.option.ConnectionURL配置的问题
2019獨角獸企業重金招聘Python工程師標準>>>
????Hive安裝過程中出現?The?reference?to?entity?"createDatabaseIfNotExist"?must?end?with?the?';'?delimiter.問題,具體如下所示:
[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.
????因為hive-site.xml中的javax.jdo.option.ConnectionURL配置項引起的,如下所示:
<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>
????這是因為xml文件中的編碼規則引起的。
????在xml文件中有以下幾類字符要進行轉義替換如下表所示:
????所以javax.jdo.option.ConnectionURL項中的&符號需要用&表示。
轉載于:https://my.oschina.net/u/1169607/blog/336628
總結
以上是生活随笔為你收集整理的javax.jdo.option.ConnectionURL配置的问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【 Grey Hack 】万金油脚本:常
- 下一篇: 2021 五一数学建模 赛题思路