Support Questions

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

Move Solr server from one host to another using Cloudera Parcels

avatar
Rising Star

I would like to move a Solr server from one host to another host that has a lot more memory using Cloudera. I am using CDH 5.2 with CM 5.2. My questions: Is it possible to move the Solr server from one host to another? What about the indexes, how are they moved? Any advice would be appreciated. 

1 ACCEPTED SOLUTION

avatar
Cloudera Employee
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
11 REPLIES 11

avatar
Cloudera Employee
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar

sorry for my question ,

 

i can follow  this steps olse if i want to add more node to my solr cluster ?

 

kind regard's

avatar
Khaled,
  If you'd like to add more replicas to existing shards, you can use this method with the CREATE action on the new nodes that you want to add replicas to. If you need to add more shards, you'll want to recreate the collection with a larger number of shards after you've added solr to the new nodes.

avatar

that is mean if i will create new collection and i have plan to increase number of nodes i must create shared more than number of current node number

 

for example : if i have cluster with 4 node now but i have plan to add more 4 node in future , i must create my collection with 8 shared to be able to increase number of my nodes to 8 node? true

avatar
If you are wanting to add more shards (to better distribute the updates), then yes, I would suggest planning in advance and oversharding. If you are more concerned about query performance, and want to keep the same number of shards but just add more replicas per shard, then just creating replicas on the new nodes will be sufficient.

avatar

thank you for your replay

 

can you give me stepes i will follw to add more node to running solr cluster

 

thanks

avatar
Contributor

Can please give me steps to add replicas of an existing shard ?

 Thanks !

avatar

If you are using CDH5.4, you can use the collections API ADDREPLICA command to add a replica for a given shard [1].  Pay attention to the format of the node parameter, it needs to be hostname:8983_solr

 

 

[1] https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api_addreplica

 

avatar
Contributor

I tried ADD REPLICA, but I get error message that specified shard does not exist.

I have a CDH 5.4 cluster, with two solr roles

solrserver1
solrserver2

on solrserver1 I have

1- collecitonname : mycolleciton , instaceDir : /var/lib/solr/mycollection_shard1_replica1/

I want to replicate it on solrserver2, so I tried the command


http://solrserver1:8983/solr/admin/collections?action=ADDREPLICA&collection=mycollection&shard=mycollection_shard1_replica1&node=solrserver2:8983_solr

and I got the message

Collection: mycollection shard: mycollection_shard1_replica1 does not exist

 

Really appreciate your help