我在云模式下有solr,同时还有zookepers配置。 在配置下方找到
core ---------|--shard1 --|--server1:7250
| |--server2:7300
| |--server3:7250
|
|--shard2--|--server1:7050
|--server2:7300
|--server3:7250
为此设置,我必须启用基本身份验证。 我是通过在 jetty.xml
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.security.HashLoginService">
<Set name="name">Realm</Set>
<Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
<Set name="refreshInterval">0</Set>
</New>
</Arg>
</Call>
webdefault.xml
<!--security-constraint>
<web-resource-collection>
<web-resource-name>Disable TRACE</web-resource-name>
<url-pattern>/</url-pattern>
<http-method>TRACE</http-method>
</web-resource-collection>
<auth-constraint/>
</security-constraint-->
<security-constraint>
<web-resource-collection>
<web-resource-name>Disable TRACE</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Realm</realm-name>
</login-config>
并添加了一个realm.properties文件。
在执行此操作时,启用了基本身份验证,但码头服务器无法相互连接。因此,由于无法连接/ solr,我遇到了未经授权的错误
我需要确保码头能够通过交换身份验证进行通信。并在solr管理员门户级别提供授权和认证。
请帮助。