Home Forums HDFS Webhdfs exception

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  Pham Tu 3 months ago.

  • Creator
    Topic
  • #57491

    Pham Tu
    Participant

    Hi guys,

    I am a new user of Webhdfs, my HDP version is 2.1, i am getting exception when run below command like this:

    curl -i -L “http://192.168.1.115:50075/webhdfs/v1/data/test1.txt?op=OPEN”
    HTTP/1.1 400 Bad Request
    Cache-Control: no-cache
    Expires: Sat, 19 Jul 2014 03:50:58 GMT
    Date: Sat, 19 Jul 2014 03:50:58 GMT
    Pragma: no-cache
    Expires: Sat, 19 Jul 2014 03:50:58 GMT
    Date: Sat, 19 Jul 2014 03:50:58 GMT
    Pragma: no-cache
    Content-Type: application/json
    Transfer-Encoding: chunked
    Server: Jetty(6.1.26)
    {“RemoteException”:{“exception”:”IllegalArgumentException”,”javaClassName”:”java.lang.IllegalArgumentException”,”message”:”namenoderpcaddress is not specified.”}}

    curl -i “http://123.30.245.15:50075/webhdfs/v1//data/test1.txt?op=GETFILESTATUS”
    HTTP/1.1 400 Bad Request
    Cache-Control: no-cache
    Expires: Sat, 19 Jul 2014 03:48:35 GMT
    Date: Sat, 19 Jul 2014 03:48:35 GMT
    Pragma: no-cache
    Expires: Sat, 19 Jul 2014 03:48:35 GMT
    Date: Sat, 19 Jul 2014 03:48:35 GMT
    Pragma: no-cache
    Content-Type: application/json
    Transfer-Encoding: chunked
    Server: Jetty(6.1.26)
    {“RemoteException”:{“exception”:”IllegalArgumentException”,”javaClassName”:”java.lang.IllegalArgumentException”,”message”:”namenoderpcaddress is not specified.”}}

    Please tell me how to fix this problem? And, what is the default number of namenoderpcaddress, thanks.

You must be logged in to reply to this topic.