温馨提示:本文翻译自stackoverflow.com,查看原文请点击:hadoop - Solr UI Authentication required in Kerberized environment
ambari hadoop kerberos solr

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

发布于 2020-04-28 21:50:14

我正在研究一个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文档(适用于mozilla)中提到的浏览器配置,但无法正常工作。

任何人都有或知道如何解决这个问题?提前致谢

查看更多

提问者
Imeliator
被浏览
65
Imeliator 2020-02-12 00:36

我确实解决了这个问题,实际上我需要在Advancedtopology 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>

然后gateway.dispatch.whitelist.services在“高级网关”站点的“:” 添加了SOLR服务