We have a table where the underlying data has been dropped, and seemingly something else must have gone wrong as well, and we want to just get rid of the whole table and schema, but running "DROP TABLE schema.table" is throwing the following error:
org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:org.datanucleus.exceptions.NucleusDataStoreException: Update of object "org.apache.hadoop.hive.metastore.model.MStorageDescriptor@955c52" using statement "UPDATE SDS SET CD_ID=? WHERE SD_ID=?" failed : java.sql.SQLTransientConnectionException: (conn=64550) Lock wait timeout exceeded; try restarting transaction
I have used the script mentioned in this conversation, but that leads to a similar error:
HiveException: MetaException(message:org.datanucleus.exceptions.NucleusDataStoreException: Update of object "org.apache.hadoop.hive.metastore.model.MStorageDescriptor@5396216a" using statement "UPDATE SDS SET CD_ID=? WHERE SD_ID=?" failed : java.sql.SQLTransientConnectionException: (conn=64632) Lock wait timeout exceeded; try restarting transaction
Any search for this error only brings up MySQL topics. Is there anything I can do to force-drop the table?