hive删除表后重新创建时提示表已存在并且卡死
作者:互联网
SQL 错误 [1] [08S01]: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. org.apache.iceberg.exceptions.AlreadyExistsException: Table was created concurrently: iceberg_dw.dw_xxxxxxxx
iceberg表在写入时,会在hive的元数据表hive_locks中增加一行该表的锁记录,当不正常退出时,就会导致删除或者创建就表时出现此问题。
手工去hive_locks 表删除该表对应的记录即可。
delete from HIVE_LOCKS where hl_db = 'iceberg_dw' and hl_table = 'dw_xxxxxxxx';
标签:iceberg,该表,表已,hive,locks,表后,xxxxxxxx,dw 来源: https://www.cnblogs.com/30go/p/16669008.html