On 1/23/2013 3:12 PM, Walter Underwood wrote:
I can get one Solr 4.1 instance up with the config bootstrapped into Zookeeper.
In zk I see two configs, two collections, and I can run the DIH on the first
node.
I can get the other two nodes to start and sync if I give them a
-Dsolr.solr.home pointing to a directory with a solr.xml and subdirectories
with configuration for each collection. If I don't do that, they look for
solr/solr.xml, then fail. But what is the point of putting configs in Zookeeper
if each host needs a copy anyway?
The wiki does not have an example of how to start a cluster with multiple
collections.
Am I missing something here?
I am a beginner at SolrCloud. I did recently get 4.1 running, though.
With help from Mark Miller, what I did was set up a basic solr.xml based
on the example, but with zero cores. I did add a sharedLib parameter
because I use ICU components in schema.xml. I started one server with
the zkHost parameter, then started the other with the bootstrap options,
calling that config 'mbbasecfg'. That got my config into zookeeper. I
still didn't have any collections or cores at this point.
Then I did:
http://server:port/solr/admin/collections?action=CREATE&name=mbstuff&numShards=1&replicationFactor=2&collection.configName=mbbasecfg
That created the following cores, one per server:
mbstuff_shard1_replica1
mbstuff_shard1_replica2
I have since created other collections in the same way. It works really
well so far. I still haven't gotten to failure testing, but that's coming.
There hasn't been time to put my findings on the wiki. This is the
first time I'm writing anything about it, and it's incomplete.
Thanks,
Shawn