This is a heads-up: there are upcoming changes in JDK 9 that will require, at least, a small update to org.apache.hadoop.crypto.CryptoStreamUtils & org.apache.hadoop.io.nativeio.NativeIO.
OpenJDK issue no. 8148117: "Move sun.misc.Cleaner to jdk.internal.ref" , will move the Cleaner class from sun.misc to jdk.internal.ref. There is ongoing discussion about the possibility of providing a public supported API, maybe in the JDK 9 timeframe, for releasing NIO direct buffer native memory, see the core-libs-dev mail thread . At the very least CryptoStreamUtils & NativeIO  should be updated to have knowledge of the new location of the JDK Cleaner.