4

I setuped single node Hadoop cluster to perform some experiments with HDFS. Via web access all looks good, I created a dedicated folder and copied file from local system to it using command line. It all appeared in web UI. After it I to get access to it via WebHDFS. For example:

curl -i "http://127.0.0.1:50075/webhdfs/v1/?op=LISTSTATUS"

But after that I get:

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Length: 154
Connection: close
{
    "RemoteException":
    {
        "exception":"IllegalArgumentException",
        "javaClassName":"java.lang.IllegalArgumentException",
        "message":"Invalid operation LISTSTATUS"
    }
}

The same error I receive on any another command.

I have no idea what went wrong here. Can it be caused for example by missing some components or anything else during setup?

1 Answers1

4

For HDP you can use following URL (with default port):

http://x.x.x.x:50070/webhdfs/v1/?op=LISTSTATUS

For MapR cluster (with default port):

http://x.x.x.x:14000/webhdfs/v1/user?op=LISTSTATUS&user.name=YOUR_USER

Sandesh Jain
  • 704
  • 3
  • 13