ZooKeeper with Solr - import configuration

0

EDIT: resolved !!! schema.xml was bad :D

So configs below are valid.

I have 3 servers in Zookeper-Solr cluster:

- solr-1
- solr-2
- solr-3

Directory structure and configuration on solr-1 :

/opt/solr
├── bin
├── CHANGES.txt
├── contrib
├── dist
├── docs
├── example
├── licenses
├── LICENSE.txt
├── LUCENE_CHANGES.txt
├── NOTICE.txt
├── README.txt
├── security.json
└── server

/opt/zookeeper/
├── bin
├── conf
├── docs
├── lib
├── LICENSE.txt
├── logs
├── NOTICE.txt
├── README.md
└── README_packaging.txt

/opt/zookeeperdata/
├── myid
├── version-2
└── zookeeper_server.pid

/opt/zookeeper/conf/zoo.cfg :

tickTime=2000
dataDir=/opt/zookeeperdata
clientPort=2181

initLimit=5
syncLimit=2
server.1=solr-1:2888:3888
server.2=solr-2:2888:3888
server.3=solr-3:2888:3888


autopurge.snapRetainCount=3
autopurge.purgeInterval=1

4lw.commands.whitelist=stat, ruok, conf, isro, mntr

SOLR systemd Unit

[Unit]
Description=SOLR Service
Requires=network.target
After=network.target zookeeper.service

[Service]
Type=forking
User=solr
Group=solr
LimitNOFILE=65000
LimitNPROC=65000
ExecStart=/opt/solr/bin/solr start -c -p 8983 -z solr-1:2181,solr-2:2181,solr-3:2181
ExecStop=/opt/solr/bin/solr stop -c -p 8983 -z solr-1:2181,solr-2:2181,solr-3:2181
ExecReload=/opt/solr/bin/solr restart -c -p 8983 -z solr-1:2181,solr-2:2181,solr-3:2181

[Install]
WantedBy=default.target

ZooKeeper systemd Unit is started with command:

/opt/zookeeper/bin/zkServer.sh start /opt/zookeeper/conf/zoo.cfg

I'm beginner in ZooKeeper-Solr things. I have config from another Solr (i have no access there):

/opt/solr_conf/
├── currency.xml
├── elevate.xml
├── email_url_types.txt
├── lang
├── managed-schema
├── params.json
├── protwords.txt
├── schema.xml
├── solrconfig.xml
├── stopwords.txt
├── synonyms.txt
├── update-script.js
└── velocity

And question is: What I have to do to run above configuration on my ZooKeeper-Solr cluster ?

I tried:

1. Copy /opt/solr_config/ -> /opt/solr/server/solr/configsets/myset/conf
2. /opt/solr/server/scripts/cloud-scripts/zkcli.sh -cmd upconfig -zkhost localhost:2181 -d /opt/solr/server/solr/configsets/myset/conf -n myset
RESUTL:
INFO  - 2019-09-11 18:35:48.955; org.apache.solr.common.cloud.ConnectionManager; Waiting for client to connect to ZooKeeper
INFO  - 2019-09-11 18:35:48.984; org.apache.solr.common.cloud.ConnectionManager; zkClient has connected
INFO  - 2019-09-11 18:35:48.984; org.apache.solr.common.cloud.ConnectionManager; Client is connected to ZooKeeper

3. bin/post -u solr:mypassword -c myCollection /opt/solr/server/solr/configsets/myset/conf/*
RESULT:
posting.. etc... 
COMMITting Solr index changes to

so i think its good
but WebPanel shows error on top: 
myCollection_shard1_replica_n1: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core myCollection_shard1_replica_n1: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'mapping-ISOLatin1Accent.txt' in classpath or '/configs/myset', cwd=/opt/solr/server
Please check your logs for more information

I tried also reload with:
solr/admin/collections?action=RELOAD&name=myCollection
RESULT:
Unable to reload core....

Could somebody help me with this ?

Christopher L

Posted 2019-09-11T17:11:37.773

Reputation: 1

No answers