Support Questions

Find answers, ask questions, and share your expertise

I am unable to run the knox url where i am testing the url with curl -i -k -u knox:knox -X GET https://10.224.155.25:9443/gateway/Vamshi/webhdfs/v1/?op=LISTSTATUS

New Contributor

[hadoop@ip-10-224-155-25 bin]$ curl -i -k -u guest:guest-password -X GET 'https://10.224.155.25:9443/Vamshi/webhdfs/v1/?op=LISTSTATUS' HTTP/1.1 404 Not Found Date: Wed, 03 Oct 2018 18:01:42 GMT Cache-Control: must-revalidate,no-cache,no-store Content-Type: text/html; charset=ISO-8859-1 Content-Length: 296 Server: Jetty(9.2.15.v20160210) <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 404 </title> </head> <body> <h2>HTTP ERROR: 404</h2> <p>Problem accessing /Vamshi/webhdfs/v1/. Reason: <pre> Not Found</pre></p> <hr /><i><small>Powered by Jetty://</small></i> </body> </html>

1 REPLY 1

Cloudera Employee

It looks like you're missing the gateway path segment in the actual command:

'https://10.224.155.25:9443/Vamshi/webhdfs/v1/?op=LISTSTATUS'

should be

'https://10.224.155.25:9443/gateway/Vamshi/webhdfs/v1/?op=LISTSTATUS'

And have you intentionally configured the gateway port to 9443 (vs the default 8443)?