Community Articles
Find and share helpful community-sourced technical articles.
Cloudera Employee

ISSUE : Hive Metastore stops responding until a restart happens.


Please collect the jstack output 5 times at an interval of 30 seconds when hivemetastore is hung.

jstack -F <hivemetastorepid> > jstack.out

Then analyze the jstack output and look for the keyword "locked".

If you see something similar to below then there are locked threads with respect to filesystem cache.

"pool-5-thread-180" #12021 prio=5 os_prio=0 tid=0x00007f63de37e000 nid=0x3900 runnable [0x00007f6391fc3000]
   java.lang.Thread.State: RUNNABLE
at org.apache.hadoop.fs.FileSystem$Cache.closeAll(
- locked <0x00000005c0032ca8> (a org.apache.hadoop.fs.FileSystem$Cache)
at org.apache.hadoop.fs.FileSystem.closeAllForUGI(
at org.apache.hadoop.hive.metastore.TUGIBasedProcessor.process(

Please add the following to hive-site.xml and restart Hive services. These properties will disable the hdfs filesystem cache.



Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.
Version history
Last update:
‎06-30-2017 09:00 PM
Updated by:
Top Kudoed Authors