Solr 5: adding a new kernel crashes

So, I just play with Solr 5, but I tried to add a new Core through the admin interface and on the command line:

bin/solr create -c new_core 

But in both situations, I get the following error:

 new_core: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core new_core: Error loading solr config from /Users/blah/lib/solr-5.3.0/server/solr/new_core/conf/solrconfig.xml 

I started my Solr server using this:

 bin/solr start 

I follow the docs here:

https://cwiki.apache.org/confluence/display/solr/Running+Solr

So what is the fix? How should this work out of the box, I assume that there should be some kind of template that uses the admin user interface to create new kernels?

+5
source share
1 answer

The error occurs because there is no new_core in the configuration. Follow these steps:

 mkdir /Users/blah/lib/solr-5.3.0/server/solr/core_name echo "name=core_name" > /Users/blah/lib/solr-5.3.0/server/solr/core_name/core.properties cp -r /Users/blah/lib/solr-5.3.0/server/solr/configsets/basic_configs/conf /Users/blah/lib/solr-5.3.0/server/solr/core_name/ 

Some important notes:

  • core.properties and conf directory must be located on the same path.
  • conf directory will contain the schema.xml and solrconfig.xml .
+9
source

All Articles