How to create Solr 6 cores?

I installed Solr 6 on an instance of Digital Ocean ubuntu:

install_solr_service.sh solr-6.1.0.tgz

and verify that Solr is running. However, I cannot create any kernels, either through the user interface or on the command line. I tried different permutations:

sudo ./solr create -c netest

including

sudo ./solr create -c netest -d /opt/solr/server/solr/configsets/basic_configs/conf/

but it always gives me:

ERROR: Error CREATEing SolrCore 'netest': Unable to create core [netest] Caused by: /var/solr/data/netest/data

If I create the directory in advance:

sudo mkdir /var/solr/data/netest/
sudo mkdir /var/solr/data/netest/data
sudo chown -R solr:solr /var/solr/data

when I re-run the create command:

ERROR: Error CREATEing SolrCore 'netest': cannot create kernel [netest] Caused by: Could not find resource 'solrconfig.xml' in classpath or '/ var / solr / data / netest'

If I copy solrconfig.xmlto the directory and run the command again, I get:

: CREATEing SolrCore 'netest': core [netest] : 'schema.xml' '/var/solr/data/netest'

, Google , schema.xml.

- ?

+4
6

Solr/solr-6.1.0/server/solr/

netest.

conf Solr/solr-6.1.0/server/solr/configsets/basic_configs/ netest.

sudo ./solr create -c netest

newcore netest conf

,

+8

root, solr Solr, (, /var/solr/data) solr. -, , , solr shell script Solr Admin Solr.

:

cd /opt/solr
sudo -u solr ./bin/solr create -c netest
sudo ls -la /var/solr/data

, , , :

  • Solr (, curl -s http://localhost:8983/solr/ links).
  • jar ( PATH).
  • : bin/solr --help Solr HOME.

Solr (, /var/solr/logs/solr.log).

: SOLR-7826: bin/solr root.

+3

, ​​ , !

sudo -u solr bin/solr create -c demo
+1

schema.xml solrconfig.xml , Core , .

0

./solr create_core -c netest -d basic_configs

0
su - solr -c "/opt/solr/bin/solr create -c testcore -n 
data_driven_schema_configs"

solr 6.60 sudo.

0

Source: https://habr.com/ru/post/1648165/


All Articles