helix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandeep Nayak <osgig...@gmail.com>
Subject Re: Helix 0.6.2: Resetting or removing a resource
Date Fri, 21 Feb 2014 06:16:41 GMT
Btw other than the remove, I have the resources working and
distributing the way I want. So just wanted to say good work, it works
nicely :-)

Thanks,

Sandeep

On Thu, Feb 20, 2014 at 10:06 PM, Sandeep Nayak <osgigeek@gmail.com> wrote:
> Does it need time to remove the resource? I tried dropResource and the
> very next call I invoke addResource to see if I can add it again and
> the add call fails with the exception
>
> org.apache.helix.HelixException: Skip the operation. Resource ideal
> state directory already exists:/cluster/IDEALSTATES/resource-name
>
> On Thu, Feb 20, 2014 at 10:03 PM, Kanak Biscuitwala <kanak.b@hotmail.com> wrote:
>> Hi Sandeep,
>>
>> dropResource is correct. resetResource takes resources in error state and resets
them to the initial state.
>>
>> Kanak
>> ----------------------------------------
>>> Date: Thu, 20 Feb 2014 21:58:24 -0800
>>> Subject: Helix 0.6.2: Resetting or removing a resource
>>> From: osgigeek@gmail.com
>>> To: user@helix.apache.org
>>>
>>> Hi guys,
>>>
>>> Wanted to check what is the correct API for removing a resource so
>>> that it is unavailable on any of the nodes?
>>>
>>> I see HelixAdmin.dropResource and HelixAdmin.resetResource. What is
>>> the right API to use to remove a resource entirely from the cluster?
>>>
>>> Thanks,
>>>
>>> Sandeep

Mime
View raw message