为什么使用“schematool -initSchema”无法识别hive-site.xml中的“amps”

问题描述 投票:0回答:1

配置完Hive和mysql后,希望通过Hive自带的schematool工具来升级元数据。当我输入升级说明时,显示以下错误。我也在 hive-site.xml 中使用了 & 转义字符,但仍然会出现错误。

hive-site.xml
的内容:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
  <property>
    <name>javax.jdo.option.ConnectionURL</name>
    <value>jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&useSSL=false</value>
    <description>JDBC connect string for a JDBC metastore</description>
  </property>
  <property>
    <name>javax.jdo.option.ConnectionDriverName</name>
    <value>com.mysql.jdbc.Driver</value>
    <description>Driver class name for a JDBC metastore</description>
  </property>
  <property>
    <name>javax.jdo.option.ConnectionUserName</name>
    <value>hive</value>
    <description>username to use against metastore database</description>
  </property>
  <property>
    <name>javax.jdo.option.ConnectionPassword</name>
    <value>hive</value>
    <description>password to use against metastore database</description>
  </property>
</configuration>

以及错误: enter image description here

我尝试删除&后面的useSSL内容,但又出现错误。我没有任何其他想法,因为我还处于初学者阶段。

java xml hadoop hive
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.