Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hive action fails

Re: Hive action fails

New Contributor

Hello, Was there any resolution to this issue? We are seeing the same thing... 

java.sql.SQLException: Error while processing statement: FAILED: Error in acquiring locks: Locks on the underlying objects cannot be acquired. retry after some time

at org.apache.hive.jdbc.Utils.verifySuccess(

at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(

at org.apache.hive.jdbc.HiveStatement.execute(


We are running CDH-4.5.0-1.cdh4.5.0.p0.30 with HiveServer2. Restarting Hive (including Gateway, HiveServer2, Hive Metastore Server and WebHCat) via CM fixes the issue but I would like to understand if we have a misconfiguration somewhere.


We run a Talend job that pulls in data from MSSQL (LOAD DATA INFILE <temp files>) it then pulls the data from those tables into other main tables. This is a 6 node cluster (5 data nodes, 1 main node that runs job tracker, name node, etc.). 





Re: Hive action fails

New Contributor

Found this!topic/cdh-user/_xSBdmwXSjI after finding the exception below in the HiveServer2 logs. 


ZooKeeperHiveLockManager: Failed to release ZooKeeper lock:

org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /hive_zookeeper_namespace_hive1/default/LOCK-SHARED-0000000019
at org.apache.zookeeper.KeeperException.create(
at org.apache.zookeeper.KeeperException.create(
at org.apache.zookeeper.ZooKeeper.delete(
at org.apache.hadoop.hive.ql.lockmgr.zookeeper.ZooKeeperHiveLockManager.unlockPrimitive(
at org.apache.hadoop.hive.ql.lockmgr.zookeeper.ZooKeeperHiveLockManager.unlockWithRetry(
at org.apache.hadoop.hive.ql.lockmgr.zookeeper.ZooKeeperHiveLockManager.unlock(
at org.apache.hadoop.hive.ql.lockmgr.zookeeper.ZooKeeperHiveLockManager.releaseLocks(
at org.apache.hadoop.hive.ql.Driver.releaseLocks(
at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatement(
at org.apache.hive.service.cli.CLIService.executeStatement(
at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(
at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(
at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(
at org.apache.thrift.ProcessFunction.process(
at org.apache.thrift.TBaseProcessor.process(
at org.apache.hive.service.cli.thrift.TSetIpAddressProcessor.process(
at org.apache.thrift.server.TThreadPoolServer$
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$

Re: Hive action fails


I encountered the same HiveServer2 error as well and my scenario is exactly as described in the link to that post. I'm using CDH4.4 and issue five INSERT-SELECT on different partitions of the same table. I couldn't find a bug for this or any solution, other than that 4.6 supposedly fixes the issue. Anybody manage to find a workaround?

Re: Hive action fails

New Contributor
Upgraded to 4.6 yesterday... Will keep you posted as to if the problem shows up again
Don't have an account?
Coming from Hortonworks? Activate your account here