Solr UI Kerberized 环境中需要身份验证

Solr UI Authentication required in Kerberized environment

我正在使用 kerberos 化 HDP 集群,其中我在 3 个节点中有 infra Solr 实例。 当我尝试连接到 solr UI 时出现此错误:

Kerberos Authentication

    Your browser did not provide the required information to authenticate using Kerberos. Please check that your computer has a valid ticket for communicating with Solr, and that your browser is properly configured to provide that ticket when required. For more information, consult Solr's Kerberos documentation .
    The response from the server was:

    HTTP 401 Authentication required
    WWW-Authenticate: Negotiate

在实例服务器中,我可以使用票证轻松卷曲到 Solr URL。 我尝试了Cloudera docs (for mozilla)中提到的浏览器配置, 但它不起作用。

有人遇到过或知道如何解决这个问题吗? 提前致谢

我确实解决了这个问题,事实上我需要在 Advanced topology Knox 中添加以下行(在 ambari ui 中):

<service> <role>SOLR</role> 
                     <url>http://<hostname1>:8886/solr/</url>
                     <url>http://<hostname2>:8886/solr/</url>
                     <url>http://<hostname3>:8886/solr/</url>
     </service>

然后我在 Advanced gateway-site

gateway.dispatch.whitelist.services 中添加了 SOLR 服务