1. fix incompatibility between Hadoop 2 and Hadoop 3. 2. fix hdfs writer will never be called when there are no healthy disks. 3. fix an NPE when HDFS file writer close.