Upload file to HDFS using webHDFS API

hdfs
Upload file to HDFS using webHDFS API
0.0 0

#1

Hi

I am trying to upload a file from my local box outside the cluster to lab HDFS using webHDFS API and curl. Is this the right way to do that? I followed this link - https://dzone.com/articles/hadoop-rest-api-webhdfs

curl -i -X PUT “http://gw01.itversity.com:50070/webhdfs/v1/user/pakrishnan/students.csv?user.name=pakrishnan&op=CREATE

I got this response
“curl: (7) Failed to connect to gw01.itversity.com port 50070: Connection refused”

What is the right way to do that?

Thanks and Regards,
Ananthu