Попытка получить доступ к службе за прокси-сервером Knox возвращает ошибку HTTP 463
Я развернул приложение Spring Boot на Edge Node в нашем кластере Hadoop и пытаюсь получить доступ с помощью Knox Gateway и соответственно настроил Knox.
Когда я пытался получить доступ к Сервису, я получаю ОШИБКУ HTTP 463:
Я вижу следующее в лог-файлах Knox Gateway.
Вот как мы настроили Сервис в Knox.
Привет,
Мы настроили Spring Boot Service, и она развернута на пограничном узле в нашем кластере HDP.
Когда мы пытались получить к нему доступ, мы получаем Http Error 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
Спасибо Сатиш