Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Cloudera Employee

ISSUE : Hive Metastore stops responding until a restart happens.

WORKAROUND :

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(FileSystem.java:2886)
- locked <0x00000005c0032ca8> (a org.apache.hadoop.fs.FileSystem$Cache)
at org.apache.hadoop.fs.FileSystem.closeAllForUGI(FileSystem.java:473)
at org.apache.hadoop.hive.metastore.TUGIBasedProcessor.process(TUGIBasedProcessor.java:131)

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

fs.hdfs.impl.disable.cache=true

fs.file.impl.disable.cache=true

696 Views
Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎06-30-2017 09:00 PM
Updated by:
 
Contributors
Top Kudoed Authors