Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (3)
avatar
Contributor

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

2,499 Views
Version history
Last update:
‎09-16-2022 01:40 AM
Updated by:
Contributors