Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Need help to create solr collections

avatar
Explorer

I was using following steps to create solr collection:

 

  1. solrctl  instancedir --generate $HOME/solr_configs
  2. solrctl  instancedir --create collection_1 $HOME/solr_configs
  3. solrctl  collection --create collection_1 -s 1

But nowadays I am getting error:
"Warning: Non-SolrCloud mode has been completely deprecated
Please configure SolrCloud via SOLR_ZK_ENSEMBLE setting in
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/bin/../etc/default/solr
If you running remotely, please use --zk zk_ensemble"

 

What changes do I need to make to achieve the earlier results?

1 ACCEPTED SOLUTION

avatar
Guru

ZooKeeper is now required for some of the features that allow Solr to scale reliably ("SolrCloud"). You need to provide the address of your ZooKeeper ensemble as --zk (host1),(host2):(port) (port is usually 2181)

View solution in original post

3 REPLIES 3

avatar
Guru

ZooKeeper is now required for some of the features that allow Solr to scale reliably ("SolrCloud"). You need to provide the address of your ZooKeeper ensemble as --zk (host1),(host2):(port) (port is usually 2181)

avatar
Explorer

Thanks  Sean, wil try it.

avatar

Hi,

 

@manniit: did the proposed solution worked for you?

 

In my case it is like that, I need to specify the location <hostname>:<port> where my ZK leader is listening.

 

You get that warning message becasue by default solrctl will try to look for configurations in a manner which is deprecated because it is moved to SolrCloud which requires ZooKeeper to work, and so its location.

 

REgards,