lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Potharaju <jspothar...@gmail.com>
Subject Re: Adding replica on solr - 5.50
Date Fri, 15 Apr 2016 01:37:35 GMT
Thanks for the help John.

> On Apr 14, 2016, at 6:22 PM, John Bickerstaff <john@johnbickerstaff.com> 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
> directories be created anyway.
> 
> There is probably a way to do it through the UI, once Solr is installed on
> a new machine - and IIRC, I did manage that, but my IT guy wanted
> scriptable command lines.
> 
> Also, IIRC, the stuff I did on the command line actually showed the API URL
> as part of the output so Jay could try that and see what the difference
> is...
> 
> Jay - I'm going offline now, but if you're still stuck tomorrow, I'll try
> to recreate... I have a VM snapshot just before I issued the command...
> 
> Keep in mind everything I did was in a Solr Cloud...
> 
>> On Thu, Apr 14, 2016 at 6:21 PM, Jeff Wartes <jwartes@whitepages.com> wrote:
>> 
>> 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 in figuring out what, and then file a bug so it doesn’t happen to
>> anyone else.
>> 
>> Adding a replica is a pretty basic operation, so whichever option is the
>> case, I feel like you’ll just encounter other problems down the road if you
>> don’t figure out what’s going on.
>> 
>> I’d probably start by creating the single-replica collection, and then
>> inspecting the live_nodes list in Zookeeper to confirm that the (live) node
>> list is actually what you think it is.
>> 
>> 
>> 
>> 
>> 
>>> On 4/14/16, 4:04 PM, "John Bickerstaff" <john@johnbickerstaff.com> wrote:
>>> 
>>> 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 <jspotharaju@gmail.com>
>>> wrote:
>>> 
>>>> Thanks John, which version of solr are you using?
>>>> 
>>>> On Thu, Apr 14, 2016 at 3:59 PM, John Bickerstaff <
>>>> john@johnbickerstaff.com>
>>>> 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 preparation
>>>>> necessary...  I'll send you the doc.
>>>>> 
>>>>> On Thu, Apr 14, 2016 at 4:55 PM, Jay Potharaju <jspotharaju@gmail.com
>>> 
>>>>> wrote:
>>>>> 
>>>>>> Curious what command did you use?
>>>>>> 
>>>>>> On Thu, Apr 14, 2016 at 3:48 PM, John Bickerstaff <
>>>>>> john@johnbickerstaff.com>
>>>>>> 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 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
>> rough
>>>>> but
>>>>>>> accurate document. But perhaps others on the list will have the
>>>>> specific
>>>>>>> answer you're looking for.
>>>>>>> 
>>>>>>> On Thu, Apr 14, 2016 at 4:19 PM, Jay Potharaju <
>>>> jspotharaju@gmail.com>
>>>>>>> wrote:
>>>>>>> 
>>>>>>>> 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&collection=test2&shard=shard1&node=x.x.x.x:9001_solr
>>>>>>>> 
>>>>>>>> Error:
>>>>>>>>> <str name="Operation addreplica caused
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>> exception:">org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
>>>>>>>>> At least one of the node(s) specified are not currently
>> active,
>>>> no
>>>>>>> action
>>>>>>>>> taken.</str>
>>>>>>>>> <lst name="exception">
>>>>>>>>> <str name="msg">At least one of the node(s) specified
are not
>>>>>> currently
>>>>>>>>> active, no action taken.</str>
>>>>>>>>> <int name="rspCode">400</int>
>>>>>>>>> </lst>
>>>>>>>>> <lst name="error">
>>>>>>>>> <lst name="metadata">
>>>>>>>>> <str
>>>> name="error-class">org.apache.solr.common.SolrException</str>
>>>>>>>>> <str
>>>>>> name="root-error-class">org.apache.solr.common.SolrException</str>
>>>>>>>>> </lst>
>>>>>>>>> <str name="msg">At least one of the node(s) specified
are not
>>>>>> currently
>>>>>>>>> active, no action taken.</str>
>>>>>>>>> <int name="code">400</int>
>>>>>>>>> </lst>
>>>>>>>>> </response>
>>>>>>>> 
>>>>>>>> 
>>>>>>>> But when i create a new collection with 2 replicas it works
>> fine.
>>>>>>>> As a side note my clusterstate.json is not updating correctly.
>> Not
>>>>> sure
>>>>>>> if
>>>>>>>> that is causing an issue.
>>>>>>>> 
>>>>>>>> Any suggestions why the Addreplica command is not working.
And
>> is
>>>> it
>>>>>>>> related to the clusterstate.json? If yes, how can i fix it?
>>>>>>>> 
>>>>>>>> --
>>>>>>>> Thanks
>>>>>>>> Jay
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Thanks
>>>>>> Jay Potharaju
>>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Thanks
>>>> Jay Potharaju
>>>> 
>> 

Mime
View raw message