http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.2.0/HDP_RelNotes_v22/index.html#Item1.8
BUG-28161, BUG-28234: Hive Server2 Long running test failed after 44 hours with OutOfMemory
Problem: Hive Server 2 out of memory due to FileSystem.CACHE leak
Workaround: To prevent memory leaks in unsecure mode, disable file system caches by setting the following parameters to true in hive configuration (hive-site.xml).
fs.hdfs.impl.disable.cache – Disable HDFS filesystem cache, default false.
fs.file.impl.disable.cache – Disable local filesystem cache, default false.