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 :-
- run zookeeper
- run solrnodes zookeeper
- upload configuration zookeeper
- create collection referring configuration
to upload configuration zookeeper , create collection :-
- create solrlibs directory
- copy /opt/solr/server/solr-webapp/webapp/web-inf/lib/*
- copy /opt/solr/server/lib/ext/*
- 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 - 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 - num shards , replication factor based on number of nodes have.
Comments
Post a Comment