Support Questions
Find answers, ask questions, and share your expertise

Hive Acid: How to kill Locks & transaction ?

Solved Go to solution

Hive Acid: How to kill Locks & transaction ?

Hello,

I have many open transactions on table that i cant' delete.

Even if i delete the table, transactions are still open.

There is a way to rollback these transactions?

There is a way to kill pending locks?

Hive version : 1.2.1

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Hive Acid: How to kill Locks & transaction ?

@Ahmed Missaoui

You may be hitting this https://issues.apache.org/jira/browse/HIVE-11934

I would say try killing HS2 and worse case case restart Hive components.

View solution in original post

6 REPLIES 6

Re: Hive Acid: How to kill Locks & transaction ?

@Ahmed Missaoui

You may be hitting this https://issues.apache.org/jira/browse/HIVE-11934

I would say try killing HS2 and worse case case restart Hive components.

View solution in original post

Re: Hive Acid: How to kill Locks & transaction ?

thank you very much :)

I suspected that is a bug.

Re: Hive Acid: How to kill Locks & transaction ?

Contributor

In the short run you can always look at the metastore database (assuming you're using the db txn manager) and try to clear them manually from the tables there.

Re: Hive Acid: How to kill Locks & transaction ?

Hello Eric, Thank you fro response. I will try it and will let you know the result.

Re: Hive Acid: How to kill Locks & transaction ?

Explorer

I don't recommend directly messing with the RDBMs. If you can't find any other way out and must make changes in the RDBMS, you should make sure to just switch the transactions states from open to aborted. Removing the transactions completely may have undesirable side effects.

Re: Hive Acid: How to kill Locks & transaction ?

Expert Contributor