avoid hdfs deprecation warning