在hive的配置文件hive-site.xml中的javax.jdo.option.ConnectionURL配置值存在多个连接参数时,如:
javax.jdo.option.ConnectionURL
jdbc:mysql://localhost:3306/hive?useSSL=false&createDatabaseIfNotExist=true
JDBC connect string for a JDBC metastore
启动hive时会报错:
columnNumber: 81; The reference to entity "createDatabaseIfNotExist" must end with the ';' delimiter.
原因分析:
因为这是xml文件,在xml配置文件中,url中的&符号需要转义成 &
解决方案:
将&符号需要转义成 & 即可
javax.jdo.option.ConnectionURL
jdbc:mysql://localhost:3306/hive?useSSL=false&createDatabaseIfNotExist=true
JDBC connect string for a JDBC metastore