hive初始化元数据报错

Error: Duplicate key name 'PCS_STATS_IDX' (state=42000,code=1061)
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !!
Underlying cause: java.io.IOException : Schema script failed, errorcode 2
Use --verbose for detailed stacktrace.
 

在mysql里有hive表了

把mysql里的hive数据库删除在重新初始化元数据

你可能感兴趣的:(hive,hive)