hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Smita Deshpande <smita.deshpa...@cumulus-systems.com>
Subject RE: Progress indicator should not be negative.
Date Mon, 21 Jul 2014 08:49:31 GMT
Hi Guys,
Can anyone please provide some suggestions/solutions on it?


From: Smita Deshpande
Sent: Thursday, July 17, 2014 11:41 AM
To: 'user@hadoop.apache.org'
Subject: Progress indicator should not be negative.

                I am running the distributed shell example of YARN on apache Hadoop 2.4.0.
I have implemented getProgress method in my ApplicationMaster as follows

public float getProgress() {
      // set progress to deliver to RM on next heartbeat
       float progress = 0;
              progress = (float) numCompletedContainers.get() / numTotalContainers.get();
       } catch(Exception _ex) {
       return progress;

While shutting down the application I get following excpetion

- Interrupted while waiting for queue
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2017)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2052)
        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
        at org.apache.hadoop.yarn.client.api.async.impl.AMRMClientAsyncImpl$CallbackHandlerThread.run(AMRMClientAsyncImpl.java:275)

When I restart my application I get following error

java.lang.IllegalArgumentException: Progress indicator should not be negative

Because of this, my ApplicationMaster is launched in another container. This exception is
coming all the time in above scenario.

Can you suggest me what is going wrong?


View raw message