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

后端 未结 7 1987
时光说笑
时光说笑 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条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 05:45

    Please notice that before creating a core you should make a directory with the same name into :

    C:\...\solr-8.3.11\server\solr

    Then copy conf folder from examples or the default folder.

    I had a same problem in windows I copied conf folder from examples:

    C:\...\solr-8.3.1\example\files

    to here :

    C:\...\solr-8.3.1\server\solr\new_core

    And my problem solved.

    You can also copy conf folder from its default folder:

    C:\...\solr-8.3.11\server\solr\configsets_default

    in here new_core is the name of my new core which I was adding.

    so maybe in Ubuntu coping this folder solve your problem.

    next solution : after running solr with command prompt or the terminal, to create a core use this command :

    solr create -c new_core_name
    

提交回复
热议问题