hive升级元数据报错The reference to entity "useSSL" must end with the ';' delimiter.

发布时间 2023-12-02 22:18:39作者: 吾王_486

使用Hive自带的schematool工具升级元数据,也就是把最新的元数据重新写入MySQL数据库中。

执行以下命令

cd /usr/local/hive
./bin/schematool -initSchema -dbType mysql

出现The reference to entity "useSSL" must end with the ';' delimiter.

修改之前配置的hive-site.xml

原来:

<value>jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&useSSL=false</value>

修改后:

<value>jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&amp;useSSL=false</value>

修改完再次执行