You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@samza.apache.org by Telles Nobrega <te...@gmail.com> on 2014/08/12 16:56:13 UTC

Getting Application ID

Hi,

I need to run an application and get the application id after running it,
is there a way to do it?

-- 
------------------------------------------
Telles Mota Vidal Nobrega
M.sc. Candidate at UFCG
B.sc. in Computer Science at UFCG
Software Engineer at OpenStack Project - HP/LSD-UFCG

Re: Getting Application ID

Posted by Telles Nobrega <te...@gmail.com>.
Thanks.


On Tue, Aug 12, 2014 at 1:13 PM, Chris Riccomini <
criccomini@linkedin.com.invalid> wrote:

> Hey Telles,
>
> The easiest way to do this is to use the RM's REST interface to find your
> app's application id:
>
> http://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/ResourceM
> anagerRest.html
>
>
> You can use:
>
> http://eat1-app807.corp:8088/ws/v1/cluster/apps
>
>
> To list all apps. This will show:
>
> <apps>
> <app>
> <id>application_1407359299394_0065</id>
> <user>samza-user</user>
> <name>job-name_1</name>
> ...
>
>
> I also believe that the run-job.sh script should print out the application
> ID when using the YarnJobRunner.
>
> Cheers,
> Chris
>
> On 8/12/14 7:56 AM, "Telles Nobrega" <te...@gmail.com> wrote:
>
> >Hi,
> >
> >I need to run an application and get the application id after running it,
> >is there a way to do it?
> >
> >--
> >------------------------------------------
> >Telles Mota Vidal Nobrega
> >M.sc. Candidate at UFCG
> >B.sc. in Computer Science at UFCG
> >Software Engineer at OpenStack Project - HP/LSD-UFCG
>
>


-- 
------------------------------------------
Telles Mota Vidal Nobrega
M.sc. Candidate at UFCG
B.sc. in Computer Science at UFCG
Software Engineer at OpenStack Project - HP/LSD-UFCG

Re: Getting Application ID

Posted by Chris Riccomini <cr...@linkedin.com.INVALID>.
Hey Telles,

The easiest way to do this is to use the RM's REST interface to find your
app's application id:

http://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/ResourceM
anagerRest.html


You can use:

http://eat1-app807.corp:8088/ws/v1/cluster/apps


To list all apps. This will show:

<apps>
<app>
<id>application_1407359299394_0065</id>
<user>samza-user</user>
<name>job-name_1</name>
...


I also believe that the run-job.sh script should print out the application
ID when using the YarnJobRunner.

Cheers,
Chris

On 8/12/14 7:56 AM, "Telles Nobrega" <te...@gmail.com> wrote:

>Hi,
>
>I need to run an application and get the application id after running it,
>is there a way to do it?
>
>-- 
>------------------------------------------
>Telles Mota Vidal Nobrega
>M.sc. Candidate at UFCG
>B.sc. in Computer Science at UFCG
>Software Engineer at OpenStack Project - HP/LSD-UFCG