You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@samza.apache.org by Jordi Blasi Uribarri <jb...@nextel.es> on 2015/08/06 09:21:50 UTC
Kill All Jobs
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 != *-Dlog4j.configuration* ]] && export JAVA_OPTS="$JAVA_OPTS -Dlog4j.configuration=file:$(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
Área I+D+i
jblasi@nextel.es
Oficina Bilbao
[http://www.nextel.es/wp-content/uploads/Firma_Nextel_2015.png]
Re: Kill All Jobs
Posted by Renato Marroquín Mogrovejo <re...@gmail.com>.
Thanks Jordi! Very useful indeed!
Renato M.
2015-08-14 2:45 GMT-07:00 Jordi Blasi Uribarri <jb...@nextel.es>:
> 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 <ct...@gmail.com> wrote:
>
> > Thanks Jordi. This really helps.
> >
> > - Shekar
> >
> > On Thu, Aug 6, 2015 at 12:21 AM, Jordi Blasi Uribarri
> > <jb...@nextel.es>
> > 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 != *-Dlog4j.configuration* ]] && export
> > > JAVA_OPTS="$JAVA_OPTS -Dlog4j.configuration=file:$(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
> > > Área I+D+i
> > >
> > > jblasi@nextel.es
> > > Oficina Bilbao
> > >
> > > [http://www.nextel.es/wp-content/uploads/Firma_Nextel_2015.png]
> > >
> >
>
Re: Kill All Jobs
Posted by Yi Pan <ni...@gmail.com>.
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 <jb...@nextel.es>
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 <ct...@gmail.com> wrote:
>
> > Thanks Jordi. This really helps.
> >
> > - Shekar
> >
> > On Thu, Aug 6, 2015 at 12:21 AM, Jordi Blasi Uribarri
> > <jb...@nextel.es>
> > 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 != *-Dlog4j.configuration* ]] && export
> > > JAVA_OPTS="$JAVA_OPTS -Dlog4j.configuration=file:$(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
> > > Área I+D+i
> > >
> > > jblasi@nextel.es
> > > Oficina Bilbao
> > >
> > > [http://www.nextel.es/wp-content/uploads/Firma_Nextel_2015.png]
> > >
> >
>
RE: Kill All Jobs
Posted by Jordi Blasi Uribarri <jb...@nextel.es>.
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 <ct...@gmail.com> wrote:
> Thanks Jordi. This really helps.
>
> - Shekar
>
> On Thu, Aug 6, 2015 at 12:21 AM, Jordi Blasi Uribarri
> <jb...@nextel.es>
> 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 != *-Dlog4j.configuration* ]] && export
> > JAVA_OPTS="$JAVA_OPTS -Dlog4j.configuration=file:$(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
> > Área I+D+i
> >
> > jblasi@nextel.es
> > Oficina Bilbao
> >
> > [http://www.nextel.es/wp-content/uploads/Firma_Nextel_2015.png]
> >
>
Re: Kill All Jobs
Posted by Yan Fang <ya...@gmail.com>.
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 <ct...@gmail.com> wrote:
> Thanks Jordi. This really helps.
>
> - Shekar
>
> On Thu, Aug 6, 2015 at 12:21 AM, Jordi Blasi Uribarri <jb...@nextel.es>
> 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 != *-Dlog4j.configuration* ]] && export
> > JAVA_OPTS="$JAVA_OPTS -Dlog4j.configuration=file:$(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
> > Área I+D+i
> >
> > jblasi@nextel.es
> > Oficina Bilbao
> >
> > [http://www.nextel.es/wp-content/uploads/Firma_Nextel_2015.png]
> >
>
Re: Kill All Jobs
Posted by Shekar Tippur <ct...@gmail.com>.
Thanks Jordi. This really helps.
- Shekar
On Thu, Aug 6, 2015 at 12:21 AM, Jordi Blasi Uribarri <jb...@nextel.es>
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 != *-Dlog4j.configuration* ]] && export
> JAVA_OPTS="$JAVA_OPTS -Dlog4j.configuration=file:$(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
> Área I+D+i
>
> jblasi@nextel.es
> Oficina Bilbao
>
> [http://www.nextel.es/wp-content/uploads/Firma_Nextel_2015.png]
>