如何将自定义服务集成到 apache knox 0.9.1 中

how to integrate custom services into apache knox 0.9.1

我现在需要将各种服务 webUI 集成到 knox gateway.For 中,我使用 CAS 作为身份验证并获得了 hdfs、hbaseUI、sparkHistoryUI 工作 fine.I 搜索 google 和百度和没有找到 knox rewrite.xml 的详细资料或文档,所以我在集成新服务(如 kibana、hue etc.The 时遇到问题 etc.The 根本原因是 rewrite.xml 包含许多我只知道的标签和属性什么都没有。 作为尝试,我集成了 tomcat7.0 ROOT webapp.here 是对应的 service.xml 和 rewrite.xml:

service.xml

rewrite.xml

当我连接 tomcat 主页时,当我单击导航栏中的超级 link "configuration" 时,一切都是 ok.but。我在浏览器中获得了无数次重定向,最后 "ERR_TOO_MANY_REDIRECTS"。 我的问题是:1) 如何编写 rewrite.xml 以使该演示正常工作。 2)有没有关于rewrite tags细节的资料或文件可以分享 如果有人愿意,我将不胜感激 help.thanks!

从本文开始:https://cwiki.apache.org/confluence/display/KNOX/Proxying+a+UI+using+Knox

有关其他信息,您还可以查看服务定义文件的文档:http://knox.apache.org/books/knox-0-9-1/dev-guide.html#Service+Definition+Files

希望对您有所帮助。