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...

Best,
Erick

On Thu, Apr 14, 2016 at 6:29 PM, Jay Potharaju <jspothar...@gmail.com> wrote:
> 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 <jwar...@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" <j...@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 <jspothar...@gmail.com>
>>> wrote:
>>>
>>>> Thanks John, which version of solr are you using?
>>>>
>>>> On Thu, Apr 14, 2016 at 3:59 PM, John Bickerstaff <
>>>> j...@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 <jspothar...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Curious what command did you use?
>>>>>>
>>>>>> On Thu, Apr 14, 2016 at 3:48 PM, John Bickerstaff <
>>>>>> j...@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 <
>>>> jspothar...@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
>>>>

Reply via email to