lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: solrconfig.xml location for cloud setup not working (works on single node)
Date Fri, 20 May 2016 23:50:48 GMT
I think you're missing the importance of Zookeeper here. You need to
upload the config to Zookeeper (as of Solr 5.5 you can do this with
bin/solr zk --upload, before that you have to use zkcli)...

Anyway, the pattern is:
1> create your config directory
2> upload it to Zookeeper.
3> create your collection _referencing that uploaded config_. There's
some logic in there that if you don't specify collection.configName on
the create command it'll look for a configset with the same name as
your collection....

Thereafter, any time you want to change _anything_ in your configs,
you need to again upload them to Zookeeper and reload your collection.


On Fri, May 20, 2016 at 2:39 PM, Justin Edmands
<> wrote:
> I have configured a single node and configured a proper datahandler. I need to move it
to a clustered setup. Seems like I cannot, for the life of me, get the datahandler to work
with the cloud setup.
> ls /opt/solr/solr-6.0.0/example/cloud/node1/solr/activityDigest_shard1_replica1/conf/
> currency.xml db-data-config.xml lang protwords.txt _rest_managed.json schema.xml solrconfig.xml
stopwords.txt synonyms.txt
> inside the solrconfig.xml, I have created a request handler to point to my config file:
> <lib dir="/opt/solr/solr-6.0.0/contrib/dataimporthandler/lib/" regex=".*\.jar" />
> <lib dir="/opt/solr/solr-6.0.0/dist/" regex="solr-dataimporthandler-\d.*\.jar" />
> <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
> <lst name="defaults">
> <str name="config">db-data-config.xml</str>
> </lst>
> </requestHandler>
> in the db-data-config.xml I have a working config (works in a single node setup that
> <dataConfig>
> <dataSource type="JdbcDataSource"
> driver="com.mysql.jdbc.Driver"
> url="jdbc:mysql://localhost:3306/ops"
> user="root"
> password="<"redacted" />
> <document>
> <entity name="employeeActivity"
> pk="id"
> query="
> ...
> bunch of stuff
> ...
> </dataConfig>
> I expect to see a data import window but I just see "Sorry, no dataimport-handler defined!"
It's as if the directory is incorrect that I am editing the conf files for.
> I guess a more direct question would be, does the cloud instance use a solrconfig.xml
from somewhere else?

View raw message