无法在Solr中创建集合
问题描述:
所以,我对solr很新颖。我下载了发行版,并从这里的快速入门教程开始 - >http://lucene.apache.org/solr/quickstart.html。无法在Solr中创建集合
当我运行
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}
什么似乎是问题?
答
当我尝试在VM Player下运行的CentOS VM中运行Solr时,我遇到了类似的问题。当我在Network Bride模式下重新启动虚拟机时,问题消失。 提示:如果您正在虚拟机中尝试,请检查主机IP配置。
答
我遇到同样的问题,当我按照快速入门教程,我通过转动我的VPN解决了这个问题。由于主机IP配置而出现问题。
您是否检查过日志?完整的堆栈跟踪可能更有帮助。一个IOException可能是多种原因的结果,并且没有查看详细的日志,您将无法弄清楚任何事情。 –