Reply
New Contributor
Posts: 2
Registered: ‎03-17-2015

Dedicated ZooKeeper for Solr

Hi!

 

Is there any way to have dedicated ZooKeeper for Solr service? I've successfully installed and configured Solr via Cloudera Manager, but I need separate ZooKeeper services for it, cause it's servers are in dedicaed rack far from main ZooKeeper and hdfs.

 

When I create the second ZooKeeper service, I can use it in Solr configuration. But Solr fails to restart with the following error:

Command failed to start: java.lang.IllegalStateException: Assumption violated: getAllDependencies returned multiple distinct services of the same type

I use hdfs for index rebuild only, Solr doesn't use it. It stores index in local FS.

 

Please, advice!

New Contributor
Posts: 2
Registered: ‎07-13-2015

Re: Dedicated ZooKeeper for Solr

We got the same issues when set HBase to another ZK, and we are verifying whether it is caused by namenode HA or not?

 

In NameNode HA case, The HDFS will depend on ZK, and it looks like that Cloudera manager does't allow HBase depend on another ZK.

 

BR

Thanks

Chang 

Cloudera Employee
Posts: 509
Registered: ‎07-30-2013

Re: Dedicated ZooKeeper for Solr

There's no great way to have distinct ZKs for HBase and HDFS today. You can use advanced configuration snippets to work around this, but it's fragile.
Highlighted
New Contributor
Posts: 2
Registered: ‎07-13-2015

Re: Dedicated ZooKeeper for Solr

Thanks dlo! Could you please give me some hints about "advanced configuration"?

Is it recommended to use the same ZK ensemble for HBase and HDFS HA?