Return-Path: X-Original-To: apmail-samza-dev-archive@minotaur.apache.org Delivered-To: apmail-samza-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCCA818642 for ; Fri, 14 Aug 2015 19:59:14 +0000 (UTC) Received: (qmail 34820 invoked by uid 500); 14 Aug 2015 19:59:09 -0000 Delivered-To: apmail-samza-dev-archive@samza.apache.org Received: (qmail 34761 invoked by uid 500); 14 Aug 2015 19:59:09 -0000 Mailing-List: contact dev-help@samza.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@samza.apache.org Delivered-To: mailing list dev@samza.apache.org Received: (qmail 34745 invoked by uid 99); 14 Aug 2015 19:59:09 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2015 19:59:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D8E1C1AA172 for ; Fri, 14 Aug 2015 19:59:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.151 X-Spam-Level: **** X-Spam-Status: No, score=4.151 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_REPLY=1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 1eSkZg9ZjCVy for ; Fri, 14 Aug 2015 19:58:57 +0000 (UTC) Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id DCCD020DD0 for ; Fri, 14 Aug 2015 19:58:56 +0000 (UTC) Received: by iodb91 with SMTP id b91so95472092iod.1 for ; Fri, 14 Aug 2015 12:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wA+aX+8KX+m3EClnHgySGzzFD+34fzWP5jo/dM3ux1A=; b=Mc0MTDncEiIYVgOvpZyGbQVaj+UZfmezDbCAcEQ1EPip2HLAdzrxgHCXIlhUJvb8YH FBO5FCWv3Pa4ts0SCb7BJ6JQHLLZ7xKkBjihjHFM19xAv+m6K2ZLhTb2Qv57m9F4OsUE 8vTPNxtYvoeUmnLZC2JFDwwYgVOl66uTAVc6W2UaQ+DAIshEcnufG7nUj8lZZcWJpGjl dxG7ycQC/tZ0yxwXH9jzC1CprNAsEtHmUJ/9ODXnbzQ1wnfaNH+nF334A63fz0DN2F8/ BVN/2ekJjiiHLOJsQlJ/8zNwXtYTbdzEWpy1OqmWIexsoCLRwBBGFlyu72zX4i3vhx9N fH8w== MIME-Version: 1.0 X-Received: by 10.107.132.160 with SMTP id o32mr16656887ioi.25.1439582329684; Fri, 14 Aug 2015 12:58:49 -0700 (PDT) Received: by 10.36.0.70 with HTTP; Fri, 14 Aug 2015 12:58:49 -0700 (PDT) In-Reply-To: References: Date: Fri, 14 Aug 2015 12:58:49 -0700 Message-ID: Subject: Re: Kill All Jobs From: Yi Pan To: dev@samza.apache.org Content-Type: multipart/alternative; boundary=001a113f3c9e62cd75051d4ae178 --001a113f3c9e62cd75051d4ae178 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Jordi, Thanks a lot! I have added you to the contributor and assigned the bug to you. Once tested, we will commit it to samza-shell module. Cheers! -Yi On Fri, Aug 14, 2015 at 2:45 AM, Jordi Blasi Uribarri wrote: > As I said I am new to this procedure, but I guess I have done it. There > goes my first contribution to the project!!! > > https://issues.apache.org/jira/browse/SAMZA-756 > > bye, > > Jordi > > -----Mensaje original----- > De: Yan Fang [mailto:yanfang724@gmail.com] > Enviado el: viernes, 14 de agosto de 2015 1:04 > Para: dev@samza.apache.org > Asunto: Re: Kill All Jobs > > Hi Jordi, > > Thanks. This is useful. If possible, can you open a JIRA and upload the > patch there? > > Thanks, > > Fang, Yan > yanfang724@gmail.com > > On Thu, Aug 6, 2015 at 8:04 AM, Shekar Tippur wrote: > > > Thanks Jordi. This really helps. > > > > - Shekar > > > > On Thu, Aug 6, 2015 at 12:21 AM, Jordi Blasi Uribarri > > > > wrote: > > > > > Hi, > > > > > > As a little present (and I know this is not the way to get the code > > > in > > the > > > project, but I am new to this sharing). I just made a simple script > > > to > > kill > > > all the jobs running in Samza. It is supposed to live with > > kill-yarn-job.sh > > > in the bin folder. It shares me time, so maybe someone finds it > helpful. > > > > > > > > > [[ $JAVA_OPTS !=3D *-Dlog4j.configuration* ]] && export > > > JAVA_OPTS=3D"$JAVA_OPTS -Dlog4j.configuration=3Dfile:$(dirname > > > $0)/log4j-console.xml" > > > > > > exec $(dirname $0)/run-class.sh > > > org.apache.hadoop.yarn.client.cli.ApplicationCLI application -list | > > > grep application_ | awk -F ' ' '{ print $1 }' | while read linea do > > > $(dirname $0)/kill-yarn-job.sh $linea done > > > > > > Hope it helps. > > > > > > Bye > > > > > > Jordi > > > ________________________________ > > > Jordi Blasi Uribarri > > > =C3=81rea I+D+i > > > > > > jblasi@nextel.es > > > Oficina Bilbao > > > > > > [http://www.nextel.es/wp-content/uploads/Firma_Nextel_2015.png] > > > > > > --001a113f3c9e62cd75051d4ae178--