Implement hdfs operation using snake