【问题标题】:Cannot Create Collection in Solr无法在 Solr 中创建集合
【发布时间】:2016-04-23 04:08:24
【问题描述】:

所以,我对 solr 还是很陌生。我下载了发行版并从这里的快速入门教程开始 -> http://lucene.apache.org/solr/quickstart.html

当我跑步时

bin/solr start -e cloud -noprompt

solr 实例已正确启动,但未能创建入门集合。我不断得到这个:

ERROR: Failed to create collection 'gettingstarted' due to: {10.0.0.11:8983_solr=org.apache.solr.client.solrj.SolrServerException:IOException occured when talking to server at: http://10.0.0.11:8983/solr, 10.0.0.11:7574_solr=org.apache.solr.client.solrj.SolrServerException:IOException occured when talking to server at: http://10.0.0.11:7574/solr}

似乎是什么问题?

【问题讨论】:

  • 你检查过日志吗?完整的堆栈跟踪可能更有帮助。 IOException 可能是多种原因导致的,如果不查看详细日志,您将无法弄清楚任何事情。

标签: java apache solr lucene


【解决方案1】:

我在尝试在 VM Player 下运行的 CentOS VM 中运行 Solr 时遇到了类似的问题。当我在网络新娘模式下重新启动 VM 时,问题消失了。 提示:如果您在虚拟机中尝试,请检查主机 IP 配置。

【讨论】:

    【解决方案2】:

    我在按照快速入门教程进行操作时遇到了同样的问题,我通过关闭 VPN 解决了​​这个问题。由于主机 IP 配置,看起来有问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-26
      • 2023-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多