更新时间:2023-01-18 23:18:07
您要提供Solr主机和端口作为Zookeeper连接的详细信息.Zookeeper和Solr是独立的守护程序,它们在不同的端口上运行.如果您是从Solr外部运行Zookeeper(即专用的Zookeeper安装),则默认端口为 2181
(因此为 localhost:2181
).如果您使用的是Solr中嵌入的端口,则该端口为Solr的端口+ 1000,通常为 9983
(因此为 localhost:9983
).
You're giving the Solr host and port as the zookeeper connection details. Zookeeper and Solr runs on separate ports as they are separate daemons. If you're running zookeeper externally from Solr (i.e. a dedicated Zookeeper installation), the default port is 2181
(so localhost:2181
). If you're using the one embedded in Solr, the port is Solr's port + 1000, usually 9983
(and thus, localhost:9983
).