- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Move Solr server from one host to another using Cloudera Parcels
Created on ‎01-12-2015 10:43 AM - edited ‎09-16-2022 02:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎01-14-2015 02:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If you don't have data saved in Solr, then moving solr servers is very staright forward by adding a new solr server role on the new host using Cloudera Manager.
If you already have data saved in solr, then in addition to the above step you also need to move the solr cores of current host to the new host. And here are the steps to move the core.
Instructions
|
After the above steps, you can remove the solr server from the first host if required (use Cloudera Manager to handle this)
Created ‎01-14-2015 02:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If you don't have data saved in Solr, then moving solr servers is very staright forward by adding a new solr server role on the new host using Cloudera Manager.
If you already have data saved in solr, then in addition to the above step you also need to move the solr cores of current host to the new host. And here are the steps to move the core.
Instructions
|
After the above steps, you can remove the solr server from the first host if required (use Cloudera Manager to handle this)
Created ‎03-16-2015 11:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sorry for my question ,
i can follow this steps olse if i want to add more node to my solr cluster ?
kind regard's
Created ‎03-17-2015 07:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎03-17-2015 10:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎03-17-2015 11:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎03-17-2015 11:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you for your replay
can you give me stepes i will follw to add more node to running solr cluster
thanks
Created ‎10-19-2015 11:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can please give me steps to add replicas of an existing shard ?
Thanks !
Created ‎10-19-2015 12:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created on ‎10-21-2015 11:26 AM - edited ‎10-21-2015 11:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
