Metastore connection URL: jdbc:derby:;databaseName=metastore_db;create=true
Metastore Connection Driver : org.apache.derby.jdbc.EmbeddedDriver
Metastore connection User: APP
Starting metastore schema initialization to 2.3.0
Initialization script hive-schema-2.3.0.mysql.sql
Error: Syntax error: Encountered “” at line 1, column 64. (state=42X01,code=30000)
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !!
第一步:查看一下你的hive-site.xml是不是在cp的时候写错名字了。
第二步:查看一下上面提到的四个属性的值是不是配错了,还是根部就没配,还是使用第三方工具改了之后忘记保存,还是直接插入的,不是替换的。具体替换步骤参考:https://www.cnblogs.com/zhengna/p/9376325.html
更改完上面的四个属性后,初始化成功!