I ran into the same issue.  I've created
https://issues.apache.org/jira/browse/TWILL-181.

-Martin

On 04/29/2016 05:54 PM, Terence Yim wrote:
> Hi Sam,
>
> You are right, currently Twill will keep retrying. Would you mind open a JIRA 
> for the improvement request? Thanks
>
> Terence
>
> Sent from my iPhone
>
>> On Apr 29, 2016, at 1:21 PM, Sam William <sampri...@gmail.com> wrote:
>>
>> Hi,
>> Im using Twill to run a batch job on a Yarn cluster.  The container gets 
>> killed sometimes because the memory requested was not enough.  I see that 
>> twill keeps retrying  infinitely.  Is there a way I can ask the framework 
>> not to retry ? Looking at the code, I  see this 
>>
>> in RunningContainers
>>
>> if (shouldRetry(exitStatus)) {
>>  LOG.info("Re-request the container {} for exit code {}.", containerId, 
>> exitStatus);
>>  restartRunnables.add(lookup.keySet().iterator().next());
>> }
>>
>> Depending on the exit status, we might be restating the containers again and 
>> again.
>>
>>
>> Sam

Reply via email to