问题描述
我在solr中运行了2个节点,并配置了单个zookeeper。我将尝试创建一个类似location的集合,它会成功创建,然后尝试创建第二个集合,例如contact。它的抛出错误。
进行创建集合的API调用
curl -sS 'http://localhost:8983/solr/admin/collections?action=CREATE&name=contact&numShards=2&replicationFactor=2&maxShardsPerNode=2&collection.configName=conf_contact'
响应创建收藏集
"responseHeader":{
"status":400,"QTime":1154},"failure":{
"192.168.1.121:8983_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at http://192.168.1.121:8983/solr: Error CREATEing SolrCore 'contact_shard2_replica_n6': Unable to create core [contact_shard2_replica_n6] Caused by: org.opensextant.solrtexttagger.TaggerRequestHandler","192.168.1.121:8983_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at http://192.168.1.121:8983/solr: Error CREATEing SolrCore 'contact_shard1_replica_n3': Unable to create core [contact_shard1_replica_n3] Caused by: org.opensextant.solrtexttagger.TaggerRequestHandler","192.168.1.157:8983_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at http://192.168.1.157:8983/solr: Error CREATEing SolrCore 'contact_shard2_replica_n5': Unable to create core [contact_shard2_replica_n5] Caused by: org.opensextant.solrtexttagger.TaggerRequestHandler","192.168.1.157:8983_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at http://192.168.1.157:8983/solr: Error CREATEing SolrCore 'contact_shard1_replica_n1': Unable to create core [contact_shard1_replica_n1] Caused by: org.opensextant.solrtexttagger.TaggerRequestHandler"},"Operation create caused exception:":"org.apache.solr.common.solrException:org.apache.solr.common.solrException: Underlying core creation Failed while creating collection: contact","exception":{
"msg":"Underlying core creation Failed while creating collection: contact","rspCode":400},"error":{
"Metadata":[
"error-class","org.apache.solr.common.solrException","root-error-class","org.apache.solr.common.solrException"],"msg":"Underlying core creation Failed while creating collection: contact","code":400}}```
**Note:** 1 GB for each node solr mem size
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)