How to fix: Error CREATEing SolrCore 'gettingstarted': Unable to create core

后端 未结 7 2004
时光说笑
时光说笑 2021-02-01 05:44

I\'m getting this error when I try to create a new core in solr.

root@ubuntu:/opt/solr# bin/solr create -c gettingstarted -n data_driven_schema_configs

Setup n         


        
7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-01 05:51

    You can solve the problem with the following steps:

    1. Check whether the directories with the right files are exist:

      • /opt/solr/server/gettingstarted/conf/solrconfig.xml
      • /opt/solr/server/gettingstarted/conf/schema.xml
      • /opt/solr/server/gettingstarted/data
    2. then open the Core Admin, "Add new core", enter the right directory/file names and add the core to the system. Actually it will give you an error message that the core already exists. Refresh the admin webpage in the browser and it will automatically load this core now without any error message.

提交回复
热议问题