Hello Team,

I have created a custom request handler(Prepared a jar) in standalone SOLR and 
I have updated this in my solrConfig.xml. I am able to perform all the 
activities related to new request handler.

But When I am trying to use that custom request handler (by preparing a jar) in 
Solr Cloud setup, I am getting error.
I have pasted the jar in ..\..\solr-8.11.1\server\lib directory
I have updated the solrConfig.xml of the _default configset and then uploaded 
into the zookeeper by following command
bin\solr zk upconfig -d "..\..\solr-8.11.1\server\solr\configsets\_default" -z 
localhost:9984

After this when I am trying to create collection using _default configset 
(which have the updated solrConfig.xml) , it is giving me below error

{
  "responseHeader":{
    "status":400,
    "QTime":2466},
  "failure":{
    
"192.168.2.100:8984_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error
 from server at http://192.168.2.100:8984/solr: Error CREATEing SolrCore 
'objdata_collection2_shard2_replica_n6': Unable to create core 
[objdata_collection2_shard2_replica_n6] Caused by: 
org.apache.solr.handler.component.SearchHandler",
    
"192.168.2.100:8984_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error
 from server at http://192.168.2.100:8984/solr: Error CREATEing SolrCore 
'objdata_collection2_shard1_replica_n1': Unable to create core 
[objdata_collection2_shard1_replica_n1] Caused by: 
org.apache.solr.handler.component.SearchHandler",
    
"192.168.2.100:8985_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error
 from server at http://192.168.2.100:8985/solr: Error CREATEing SolrCore 
'objdata_collection2_shard1_replica_n2': Unable to create core 
[objdata_collection2_shard1_replica_n2] Caused by: 
org.apache.solr.handler.component.SearchHandler",
    
"192.168.2.100:7574_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error
 from server at http://192.168.2.100:7574/solr: Error CREATEing SolrCore 
'objdata_collection2_shard2_replica_n4': Unable to create core 
[objdata_collection2_shard2_replica_n4] Caused by: 
org.apache.solr.handler.component.SearchHandler"},
  "Operation create caused 
exception:":"org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
 Underlying core creation failed while creating collection: 
objdata_collection2",
  "exception":{
    "msg":"Underlying core creation failed while creating collection: 
objdata_collection2",
    "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: 
objdata_collection2",
    "code":400}}


  1.  Can you please tell me , how I can make this custom request handler as 
working in solrCloud.
  2.  Where I should place the jar in solrcloud setup , so that it would be 
picked by my updated solrConfig.xml file
  3.  Is this the right way to do in solrCloud setup or Should I have to do 
something different.

Thanks & Regards,
Rahul

Reply via email to