pytinyhdfs
Tiny client for HDFS, base on WebHDFS
Install
pip install tinyhdfs
Usage
tinyhdfs --help
ls <hdfs-path>
List information about directory
rm <hdfs-file>
Remove file from HDFS
rmdir <hdfs-path>
Remove directory from HDFS
mkdir <hdfs-path>
Create directory in HDFS
get <hdfs-file> [local-path]
Download HDFS file to local, default $PWD
put <local-file> <hdfs-path>
Upload file to HDFS, support "*" for multiple files