solr - SolrCloud DIH implementation with zookeeper -


i going put old dataimporthandler configuration of solr 4.3 solrcloud 5.0.

i have deployed zookeeper on 3 virtual machines , communicating each other. have read nodes, collections, shards , replicas not able collect how can put old dih configurations zookeeper. have 5 different dih configurations need put solrcloud. mean have create 5 nodes or collections?, yup confused here.

thanks in advance!

there no need of node configuration. solr cloud depends upon collection sharded across nodes , can create replica of it.

these steps need solrcloud :-

  1. run zookeeper
  2. run solrnodes zookeeper
  3. upload configuration zookeeper
  4. create collection referring configuration

to upload configuration zookeeper , create collection :-

  1. create solrlibs directory
  2. copy /opt/solr/server/solr-webapp/webapp/web-inf/lib/*
  3. copy /opt/solr/server/lib/ext/*
  4. run command java -classpath .:/opt/solrlibs/* org.apache.solr.cloud.zkcli -cmd upconfig -zkhost 192.168.1.1:2181,192.168.1.2:2181,192.168.1.3:2181 -confdir /opt/solrconfigs/test/conf -confname testconf
  5. create collection using following command http://192.168.1.4:8080/solr/admin/collections?action=create&name=test&collection.configname=testconf&numshards=2&replicationfactor=2
  6. num shards , replication factor based on number of nodes have.

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -