尝试在Knox代理后面访问服务返回HTTP错误463

时间:2019-02-22 18:32:28

标签: apache-knox

我已经在Hadoop集群中的Edge Node上部署了Spring Boot应用程序,并尝试使用Knox Gateway进行访问并相应地配置了Knox。

当我尝试访问服务时,我收到HTTP错误463:

我在Knox网关日志文件中看到以下内容。

这是我们在Knox中配置服务的方式。

嗨,

我们已经配置了Spring Boot Service,并将其部署在HDP集群中的Edge Node上。

当我们尝试访问它时,我们收到Http错误463。

Here is the Configuration for the Service.
===============
service.xml
===============
<service role="MYSERVICE" name="myservice" version="0.0.1">

<policies>
<policy role="webappsec"/>
<policy role="authentication" name="Anonymous"/>
<policy role="rewrite"/>
<policy role="authorization"/>
</policies>

<routes>
<route path="/myservice"/>
<route path="/myservice/**"/>
</routes>

<dispatch classname="org.apache.hadoop.gateway.dispatch.PassAllHeadersDispatch"/>

</service>

===============
rewrite.xml
===============
<rules>
<rule dir="IN" name="MYSERVICE/myservice/inbound" pattern="*://*:*/**/myservice/{path=**}?{**}">
<rewrite template="{$serviceUrl[MYSERVICE]}/{path=**}?{**}"/>
</rule>
</rules>

We added this Service to knox sso topology.

In the Knox Gateway Logs we are getting this Error:

19/02/21 21:38:04 ||dbdf1074-d3f9-4996-a277-58f073eeb467|audit|0:0:0:0:0:0:0:1|MYSERVICE|anonymous|||access|uri|/gateway/knoxsso/myservice/feeds/stats|success|Response status: 463
19/02/21 21:38:04 ||75ab9695-a7d6-4d5a-a3d4-a4b98825d51e|audit|0:0:0:0:0:0:0:1|MYSERVICE|anonymous|||dispatch|uri|https://<DOMAIN_NAME>:443/gateway/knoxsso/myservice/feeds/stats|success|Response status: 463
19/02/21 21:38:04 ||75ab9695-a7d6-4d5a-a3d4-a4b98825d51e|audit|0:0:0:0:0:0:0:1|MYSERVICE|anonymous|||access|uri|/gateway/knoxsso/myservice/feeds/stats|success|Response status: 463

谢谢 卫星

0 个答案:

没有答案