我在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