Hi Mohammad -

Good to hear from you!
Hope all is well.

It seems that you have poc.xml configured to be the "default topology".
This feature isn't working properly and it seems that maybe something was
done to advance it towards working properly but still not quite there yet.

Try removing that configuration from gateway-site.xml and try it again.

thanks,

--larry


On Mon, Apr 24, 2017 at 3:45 AM, Mohammad Islam <[email protected]>
wrote:

> Hi,I recently upgraded Knox from 0.9.1 to 0.12. When I tried to access
> WEBHDFS through curl command, it failed with 404. See details at the end.
> However, the same command worked in 0.9.1? Btw I reused the same
> configurations including topologies for both versions.Any idea?
> Regards,Mohammad
> Curl command:
> $ curl -ivk -H "X-Params-Email: [email protected]" -H "X-Own-Source: ABCD" "
> https://HOSTNAME:8443/gateway/poc/webhdfs/v1/tmp/?op=LISTSTATUS";
>  SSLv2, Unknown (23):> GET /gateway/poc/webhdfs/v1/tmp/?op=LISTSTATUS
> HTTP/1.1> User-Agent: curl/7.38.0> Host: HOSTNAME:8443> Accept:
> */*> X-Params-Email: [email protected]> X-Own-Source: ABCD> * SSLv2, Unknown
> (23):< HTTP/1.1 404 Not FoundHTTP/1.1 404 Not Found
>
> gateway.log :*******NOTE: the first line never printed for 0.9.1 case.
> *********
> 2017-04-24 07:11:33,794 DEBUG hadoop.gateway 
> (DefaultTopologyHandler.java:handle(83))
> - Default topology forward from /gateway/poc/webhdfs/v1/tmp/janus/ to
> /gateway/poc/gateway/poc/webhdfs/v1/tmp/janus/ 2017-04-24 07:11:33,795
> DEBUG hadoop.gateway (GatewayFilter.java:doFilter(116)) - Received
> request: GET /gateway/poc/webhdfs/v1/tmp/janus/2017-04-24 07:11:33,795
> WARN  hadoop.gateway (GatewayFilter.java:doFilter(162)) - Failed to match
> path /gateway/poc/webhdfs/v1/tmp/janus/

Reply via email to