webhdfs not working on HDP sandbox -
i getting error when execute following command on hortonworks sandbox hdp 2.3_1:
curl -i "http://localhost:50075/webhdfs/v1/queryresult/part-m-00000?op=open http/1.1 400 bad request content-type: application/json; charset=utf-8 content-length: 161 connection: close {"remoteexception":{"exception":"illegalargumentexception","javaclassname":"java.lang.illegalargumentexception","message":"java.net.unknownhostexception: null"}}
when change port 50070, message "curl: (7) couldn't connect host
".
webhdfs property enabled in hdsf-site.xml , single node hadoop cluster.
<property> <name>dfs.webhdfs.enabled</name> <value>true</value> <final>true</final> </property>
does /queryresult/part-m-00000 exist? try hadoop dfs -ls /queryresult/queryresult/part-m-00000 , see if can see file. if can check permissions on file. should have read ability user making webhdfs query.
Comments
Post a Comment