Re: Adding replica on solr - 5.50

2016-04-15 Thread Jay Potharaju
I have multiple solr instances running in my dev sandbox. When adding a replica i was passing the host IP instead of 127.0.1.1 which is recorded in the live nodes section. Thanks Eric for pointing that out. Working URL:

Re: Adding replica on solr - 5.50

2016-04-15 Thread John Bickerstaff
Oh, and what, if any directories need to exist for the ADDREPLICA command to work? Hopefully nothing past the already existing /var/solr/data created by the Solr install script? On Fri, Apr 15, 2016 at 11:18 AM, John Bickerstaff wrote: > Oh, and what, if any

Re: Adding replica on solr - 5.50

2016-04-15 Thread John Bickerstaff
Oh, and what, if any directories need to exist for the ADDREPLICA On Fri, Apr 15, 2016 at 11:09 AM, John Bickerstaff wrote: > Thanks again Eric - I'm going to be trying the ADDREPLICA again today or > Monday. I much prefer that to hand-edit hackery... > > Thanks also

Re: Adding replica on solr - 5.50

2016-04-15 Thread John Bickerstaff
Thanks again Eric - I'm going to be trying the ADDREPLICA again today or Monday. I much prefer that to hand-edit hackery... Thanks also for pointing out that cURL makes it "scriptable"... On Fri, Apr 15, 2016 at 10:50 AM, Erick Erickson wrote: > bq: Shouldn't this:

Re: Adding replica on solr - 5.50

2016-04-15 Thread Erick Erickson
bq: Shouldn't this: =x.x.x.x:9001_solr Actually be this? =x.x.x.x:9001/solr (Note the / instead of _ )

Re: Adding replica on solr - 5.50

2016-04-15 Thread Jaroslaw Rozanski
Hi, Does the `=...` actually work for you? When attempting similar with Solr 5.3.1, despite what documentation said, I had to use `node_name=...`. Thanks, Jarek On Fri, 15 Apr 2016, at 05:48, John Bickerstaff wrote: > Another thought - again probably not it, but just in case... > > Shouldn't

Re: Adding replica on solr - 5.50

2016-04-14 Thread John Bickerstaff
Another thought - again probably not it, but just in case... Shouldn't this: =x.x.x.x:9001_solr Actually be this? =x.x.x.x:9001/solr

Re: Adding replica on solr - 5.50

2016-04-14 Thread John Bickerstaff
Jay - it's probably too simple, but the error says "not currently active" which could, of course, mean that although it's up and running, it's not listening on the port you have in the command line... Or that the port is blocked by a firewall or other network problem. I note that you're using

Re: Adding replica on solr - 5.50

2016-04-14 Thread John Bickerstaff
Thanks Eric! I'll look into that immediately - yes, I think that cURL would qualify as scriptable for my IT lead. In the end, I found I could do it two ways... Either copy the entire solr data directory over to /var/solr/data on the new machine, change the directory name and the entries in the

Re: Adding replica on solr - 5.50

2016-04-14 Thread Erick Erickson
Post your clusterstate.json file? You shouldn't even have a clusterstate.json file with anything in it. In the 5x code line the state of each collection is kept under the relevant collections z-noed in "state.json". Confusingly, though, the clusterstate.json node still exists but is empty...

Re: Adding replica on solr - 5.50

2016-04-14 Thread Jay Potharaju
Thanks for the help John. > On Apr 14, 2016, at 6:22 PM, John Bickerstaff > wrote: > > Sure - couldn't agree more. > > I couldn't find any good documentation on the Solr site about how to add a > replica to a Solr cloud. The Admin UI appears to require that the >

Re: Adding replica on solr - 5.50

2016-04-14 Thread Erick Erickson
bq: the Solr site about how to add a replica to a Solr cloud. The Admin UI appears to require that the directories be created anyway No, no, a thousand times NO! You're getting confused, I think, with the difference between _cores_ and _collections_ (or replicas in a collection). Do not use

Re: Adding replica on solr - 5.50

2016-04-14 Thread Jay Potharaju
Jeff, I couldn't agree more with you. I think the reason it is not working is because of screwed up clusterstate.json, not sure how to fix it. Have already restarted my zk servers. Any more suggestions regarding the same. > On Apr 14, 2016, at 5:21 PM, Jeff Wartes

Re: Adding replica on solr - 5.50

2016-04-14 Thread John Bickerstaff
Sure - couldn't agree more. I couldn't find any good documentation on the Solr site about how to add a replica to a Solr cloud. The Admin UI appears to require that the directories be created anyway. There is probably a way to do it through the UI, once Solr is installed on a new machine - and

Re: Adding replica on solr - 5.50

2016-04-14 Thread Jeff Wartes
I’m all for finding another way to make something work, but I feel like this is the wrong advice. There are two options: 1) You are doing something wrong. In which case, you should probably invest in figuring out what. 2) Solr is doing something wrong. In which case, you should probably invest

Re: Adding replica on solr - 5.50

2016-04-14 Thread John Bickerstaff
5.4 This problem drove me insane for about a month... I'll send you the doc. On Thu, Apr 14, 2016 at 5:02 PM, Jay Potharaju wrote: > Thanks John, which version of solr are you using? > > On Thu, Apr 14, 2016 at 3:59 PM, John Bickerstaff < > j...@johnbickerstaff.com> >

Re: Adding replica on solr - 5.50

2016-04-14 Thread Jay Potharaju
Thanks John, which version of solr are you using? On Thu, Apr 14, 2016 at 3:59 PM, John Bickerstaff wrote: > su - solr -c "/opt/solr/bin/solr create -c statdx -d /home/john/conf > -shards 1 -replicationFactor 2" > > However, this won't work by itself. There is some

Re: Adding replica on solr - 5.50

2016-04-14 Thread John Bickerstaff
su - solr -c "/opt/solr/bin/solr create -c statdx -d /home/john/conf -shards 1 -replicationFactor 2" However, this won't work by itself. There is some preparation necessary... I'll send you the doc. On Thu, Apr 14, 2016 at 4:55 PM, Jay Potharaju wrote: > Curious what

Re: Adding replica on solr - 5.50

2016-04-14 Thread Jay Potharaju
Curious what command did you use? On Thu, Apr 14, 2016 at 3:48 PM, John Bickerstaff wrote: > I had a hard time getting replicas made via the API, once I had created the > collection for the first time although that may have been ignorance on > my part. > > I was

Re: Adding replica on solr - 5.50

2016-04-14 Thread John Bickerstaff
I had a hard time getting replicas made via the API, once I had created the collection for the first time although that may have been ignorance on my part. I was able to get it done fairly easily on the Linux command line. If that's an option and you're interested, let me know - I have a

Adding replica on solr - 5.50

2016-04-14 Thread Jay Potharaju
Hi, I am using solr 5.5 and testing adding a new replica when a solr instance comes up. When I run the following command I get an error. I have 1 replica and trying to add another replica. http://x.x.x.x:8984/solr/admin/collections?action=ADDREPLICA=test2=shard1=x.x.x.x:9001_solr Error: >