完整报错:
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !!
Underlying cause: java.io.IOException : Schema script failed, errorcode 2
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !!
图片:
解决方法:
将mysql的数据库删掉重新新建即可
再次运行初始化命令:
schematool -initSchema -dbType mysql -verbose
报错就不存在了,也成功运行了