I am trying this command on my hadoop cluster (Cloudera 5.4.1)
curl -i http://webhdfs:50075/webhdfs/v1/user/admin/test/test.txt?user.name=admin&op=OPEN&namenoderpcaddress=namenode:8022; echo
Here I have confirmed that webhdfs, namenode machine names are all correct and ports 50075 and 8022 are correct.
But I get an error
Cache-Control: no-cache
Expires: Tue, 24 Nov 2015 15:49:42 GMT
Date: Tue, 24 Nov 2015 15:49:42 GMT
Pragma: no-cache
Expires: Tue, 24 Nov 2015 15:49:42 GMT
Date: Tue, 24 Nov 2015 15:49:42 GMT
Pragma: no-cache
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(6.1.26.cloudera.4)
{"RemoteException":{"exception":"IllegalArgumentException","javaClassName":
"java.lang.IllegalArgumentException","message":"namenoderpcaddress is not specified."}}