Modify _mkdir_on_hdfs. Add unittest.