Back

WebHDFS


Ports:

50070

Commands:

curl -i "http://node1:50070/webhdfs/v1/user/root?op=LISTSTATUS"
curl -i -X PUT "http://node1:50070/webhdfs/v1/user/root/history?op=MKDIRS&user.name=root"
curl -i -X PUT "http://node1:50070/webhdfs/v1/user/root?op=MKDIRS&user.name=root"
curl -i -PUT -T constitution.txt "http://node1:50075/webhdfs/v1/user/root/history/constitution.txt?op=CREATE&user.name=root&namenoderpcaddress=node1:8020&blocksize=1048576&createflag=&createparent=true&overwrite=false"
curl -i -X PUT "http://node1:50070/webhdfs/v1/user/root/big.txt?op=CREATE&blocksize=1048576"
curl -i -PUT -T test_data "http://node1:50075/webhdfs/v1/user/root/big.txt?op=CREATE&user.name=root&namenoderpcaddress=node1:8020&blocksize=1048576&createflag=&createparent=true&overwrite=false"
curl -i -X POST "http://node1:50070/webhdfs/v1/user/root/big.txt?op=APPEND"
curl -i -X POST -T test_data "http://node1:50075/webhdfs/v1/user/root/big.txt?op=APPEND&user.name=root&namenoderpcaddress=node1:8020"
curl -i -L "http://node1:50070/webhdfs/v1/user/root/history/constitution.txt?op=OPEN" > constitution.txt
curl -i -L "http://node1:50070/webhdfs/v1/user/root/big.txt?op=OPEN&offset=1000000&length=1048576" > big_partitial.txt
  • bigdata/webhdfs.txt
  • Last modified: 2018/05/25 13:05
  • (external edit)