Fix for apache hadoop 2.2 support