Re: Dispatcher class for Grafana

2018-08-16 Thread Divya Narayan
Hi Sandeep, In gateway.log I get this: 2018-08-17 04:49:38,760 DEBUG hadoop.gateway (GatewayFilter.java:doFilter(116)) - Received request: GET /grafana/api/datasources/proxy/1/ws/v1/timeline/metrics 2018-08-17 04:49:38,763 DEBUG hadoop.gateway (UrlRewriteProcessor.java:rewrite(166)) - Rewrote

Knox SSO - throwing null pointer exception on first time login

2018-08-16 Thread Ravikumar, Praveen Krishnamoorthy
Greetings, I’m facing a weird issue on enabling knox-sso functionality for exposing UI’s running in AWS EMR. On enabling knox-sso, I tried to access the YARNUI site – after authentication its throwing java.lang.null.pointer exception but on submitting the url again (without clearing the

Re: Knox Integration with CDAP UI

2018-08-16 Thread Sandeep Moré
Hello Priyanka, I am not aware of CDAP UI support for Knox, we would be glad if you could contribute ! About the filters they can be a bit tricky, try to turn on the debug log and see what rewrite rules are failing that can narrow down a lot of errors. For JS filters you can use regex to rewrite

Re: Dispatcher class for Grafana

2018-08-16 Thread Sandeep Moré
Hello Divya, Looking at the URL you posted looks like you are using the wrong dispatch class, URLDecodingDispatch is used for URLs that are already encoded, looking at your example URL it looks like it is partially encoded (e.g. the query params &), in-fact looks like it is not properly encoded.

Re: Need help on rewrite rules

2018-08-16 Thread Sandeep Moré
Hello Priyanka, Sometimes the content types do not match, can you check if the response type you are getting back is indeed "application/javascript" ? Also, try using a broader rule on service.xml for testing something like / Do you see any failures in gateway.log, i.e. failure to apply rules

Dispatcher class for Grafana

2018-08-16 Thread Divya Narayan
Hi , I tried to integrate grafana UI with knox gateway. I used URLDecodingDispatch class but there were some calls which were failing like:

Need help on rewrite rules

2018-08-16 Thread Priyanka Gupta
Hi, I need some help on a rewrite rule.I have a java script which is internally calling other java scripts.So I tried to modify the url of those javascript using filters. Java scripts url : But these requests are not changing.