Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 233151170F for ; Mon, 21 Jul 2014 08:50:13 +0000 (UTC) Received: (qmail 56990 invoked by uid 500); 21 Jul 2014 08:50:07 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 56854 invoked by uid 500); 21 Jul 2014 08:50:07 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 56835 invoked by uid 99); 21 Jul 2014 08:50:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2014 08:50:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of smita.deshpande@cumulus-systems.com designates 207.46.163.186 as permitted sender) Received: from [207.46.163.186] (HELO na01-bn1-obe.outbound.protection.outlook.com) (207.46.163.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2014 08:50:01 +0000 Received: from CO1PR01MB110.prod.exchangelabs.com (10.242.164.147) by CO1PR01MB111.prod.exchangelabs.com (10.242.164.150) with Microsoft SMTP Server (TLS) id 15.0.990.7; Mon, 21 Jul 2014 08:49:33 +0000 Received: from CO1PR01MB110.prod.exchangelabs.com ([169.254.11.124]) by CO1PR01MB110.prod.exchangelabs.com ([169.254.11.124]) with mapi id 15.00.0990.007; Mon, 21 Jul 2014 08:49:33 +0000 From: Smita Deshpande To: "user@hadoop.apache.org" Subject: RE: Progress indicator should not be negative. Thread-Topic: Progress indicator should not be negative. Thread-Index: Ac+hhc2yiDQWF3abRvK1a5nABsvQbADOsQFw Date: Mon, 21 Jul 2014 08:49:31 +0000 Message-ID: <92ba23cc4f5d4ab99a9ff5dfdb01d1ed@CO1PR01MB110.prod.exchangelabs.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.122.178] x-microsoft-antispam: BCL:0;PCL:0;RULEID: x-forefront-prvs: 0279B3DD0D x-forefront-antispam-report: SFV:NSPM;SFS:(979002)(6009001)(199002)(189002)(377454003)(164054003)(105586002)(81342001)(95666004)(46102001)(2656002)(87936001)(101416001)(21056001)(99396002)(50986999)(92566001)(85852003)(83072002)(106356001)(110136001)(85306003)(20776003)(31966008)(64706001)(77096002)(81542001)(77982001)(74662001)(66066001)(33646002)(86362001)(74316001)(4396001)(16236675004)(79102001)(107046002)(2351001)(107886001)(15975445006)(19300405004)(19580395003)(19580405001)(83322001)(15202345003)(19625215002)(54356999)(108616002)(24736002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:;SCL:1;SRVR:CO1PR01MB111;H:CO1PR01MB110.prod.exchangelabs.com;FPR:;MLV:ovrnspm;PTR:InfoNoRecords;MX:1;LANG:en; Content-Type: multipart/alternative; boundary="_000_92ba23cc4f5d4ab99a9ff5dfdb01d1edCO1PR01MB110prodexchang_" MIME-Version: 1.0 X-OriginatorOrg: cumulus-systems.com X-Virus-Checked: Checked by ClamAV on apache.org --_000_92ba23cc4f5d4ab99a9ff5dfdb01d1edCO1PR01MB110prodexchang_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Guys, Can anyone please provide some suggestions/solutions on it? Thanks, Smita From: Smita Deshpande Sent: Thursday, July 17, 2014 11:41 AM To: 'user@hadoop.apache.org' Subject: Progress indicator should not be negative. Hi, I am running the distributed shell example of YARN on apach= e 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 =3D 0; try{ progress =3D (float) numCompletedContainers.get() / numTotalC= ontainers.get(); } catch(Exception _ex) { _ex.printStackTrace(); } return progress; } While shutting down the application I get following excpetion - Interrupted while waiting for queue java.lang.InterruptedException at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionO= bject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2017) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionO= bject.await(AbstractQueuedSynchronizer.java:2052) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueu= e.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 negati= ve Because of this, my ApplicationMaster is launched in another container. Thi= s exception is coming all the time in above scenario. Can you suggest me what is going wrong? Thanks, Smita --_000_92ba23cc4f5d4ab99a9ff5dfdb01d1edCO1PR01MB110prodexchang_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Guys,

Can anyone please prov= ide some suggestions/solutions on it?

 

Thanks,

Smita

 

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

 

Hi,

        &nbs= p;       I am running the distributed shell example of YARN on apache Hadoop 2.4.0. =

I have implemented getPr= ogress method in my ApplicationMaster as follows

 =

public float getProgress()= {<= /span>

      = // set progress to deliver to RM on next heartbeat

       float progress =3D 0;

       try{=

      =         progress =3D (float) = numCompletedContainers.get() / = numTotalContainers.get();

      = } catch(Exception _ex) {

      =         _ex.printStackTrace();

      = }<= /span>

       return progress;

}

 

While shutting down the application I get following excpetion

 

- Interrupted while wait= ing for queue

java.lang.InterruptedExcep= tion

    =     at java.util.concurrent.locks.AbstractQueuedSynchronizer= $ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2= 017)

    =     at java.util.concurrent.locks.AbstractQueuedSynchronizer= $ConditionObject.await(AbstractQueuedSynchronizer.java:2052)

    =     at java.util.concurrent.LinkedBlockingQueue.take(LinkedB= lockingQueue.java:442)

    =     at org.apache.hadoop.yarn.client.api.async.impl.AMRMClie= ntAsyncImpl$CallbackHandlerThread.run(AMRMClientAsyncImpl.java:275)

 =

When I restart my applic= ation I get following error

 =

java.lang.IllegalArgumen= tException: Progress indicator should not be negative<= o:p>

 

Because of this, my Appl= icationMaster is launched in another container. This exception is coming al= l the time in above scenario.

 =

Can you suggest me what = is going wrong?

 =

Thanks,

Smita<= /p>

 

--_000_92ba23cc4f5d4ab99a9ff5dfdb01d1edCO1PR01MB110prodexchang_--