Re: url rewrite does not work when adding a new service

2018-09-12 Thread Sandeep Moré
Great, you got it work, touching the topology is a bit that can be so easy to miss. I don't think we have working configs for Jupyter notebook, we would love to have one though. It would be really awesome if you can contribute it to the community when you get it to work ! Best, Sandeep On Wed, Se

Re: url rewrite does not work when adding a new service

2018-09-12 Thread Lian Jiang
Thanks Sandeep. I got clue from http://mail-archives.apache.org/mod_mbox/knox-user/201805.mbox/%3ccacrbfygjshmcc+qm0wnwzhcjcb9ge2galrtngory-zklgag...@mail.gmail.com%3E . Restarting knox is not enough and I must touch the topology file to reload it every time even if the topology is not changed. N

Re: url rewrite does not work when adding a new service

2018-09-12 Thread Sandeep Moré
No idea why Knox is redirecting back to itself, perhaps turning on Debug logging will help understand what is happening. I remember I got the weather service working at some point, let me know if you would like the service and XML files for it. On Wed, Sep 12, 2018 at 11:52 AM Lian Jiang wrote:

Re: url rewrite does not work when adding a new service

2018-09-12 Thread Lian Jiang
This is from gateway.log. It is expected that knox cannot connect to knox_load_balancer.com because rewriting knox_load_balancer.com to yahoo.com did not happen. Thanks for any hint. 2018-09-12 15:48:38,273 WARN knox.gateway (DefaultDispatch.java:executeOutboundRequest(147)) - Connection exceptio

Re: url rewrite does not work when adding a new service

2018-09-12 Thread Sandeep Moré
Hello Lian, What do you see in gateway.log ? Knox replacing knox_load_balancer.com:80 with http://yahoo.com/ might be the log output of rewritten URL which is expected given WEATHER http://yahoo.com/ On Wed, Sep 12, 2018 at 2:22 AM Lian Jia

url rewrite does not work when adding a new service

2018-09-11 Thread Lian Jiang
I am following http://kminder.github.io/knox/2015/11/16/adding-a-service-to-knox.html to add a weather service to knox. data/services/weather/0.0.1/rewrite.xml: data/services/weather/0.0.1/service.xml: