Hive元数据存储初始化失败: 表'CTLGS'已存在 - 解决方法
"Error: Table 'CTLGS' already exists (state=42S01,code=1050)\norg.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !!\nUnderlying cause: java.io.IOException : Schema script failed, errorcode 2\nUse --verbose for detailed stacktrace.\n*** schemaTool failed ***\n报什么错内容:这个错误是Hive元数据存储初始化失败的错误。具体错误信息是"Table 'CTLGS' already exists",表示表'CTLGS'已经存在,无法再次创建。这种情况下,可能是因为之前已经执行过相同的初始化操作,导致表已经存在于数据库中。解决这个问题的方法可以是删除或重命名已存在的表,然后重新运行初始化操作。
原文地址: https://www.cveoy.top/t/topic/pArh 著作权归作者所有。请勿转载和采集!