Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Cannot connect to webhdfs

Re: Connected httpfs/webhdfs but not getting output

New Contributor



Ran below curl commands, able to connected but not getting results. Just its throwong letter P along with special characters.

Env is Cloudera 6.1.2.

Want to use httpfs to put the files in HDFS.

Please suggest.


curl -i -X PUT -T /home/CORP/isuy/Ganesh.txt "http://aalhauap2u01:14000/hdfs:////user/isuy/testfiles?op=CREATE"

curl -i "http://aalhauap2g01:14000/webhdfs/v1/user/"


 curl -i "http://aalhauap2u02:14000/webhdfs/v1/user/" -v
* About to connect() to aalhauap2u02 port 14000 (#0)
*   Trying
* Connected to aalhauap2u02 ( port 14000 (#0)
> GET /webhdfs/v1/user/ HTTP/1.1
> User-Agent: curl/7.29.0
> Host: aalhauap2u02:14000
> Accept: */*
* Connection #0 to host aalhauap2u02 left intact