You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@apex.apache.org by Meemee Bradley <me...@gmail.com> on 2016/09/13 20:02:55 UTC

Can Apex launch command be submitted without using Apex CLI interactively?

Hi,

I am new to Apache Apex. I have a script to monitor submitted Apex
application using yarn utilities, when application fails, if application
can not relaunch/recover by itself, I would like to launch the application
again. Currently, I can do that by using Apex CLI, and launch the
application with original ID interactively. I would prefer to launch the
application again from a script without using Apex CLI interactively. Any
ideas regarding how do I accomplish that?

Thanks!

Re: Can Apex launch command be submitted without using Apex CLI interactively?

Posted by Meemee Bradley <me...@gmail.com>.
Thanks!

On Tue, Sep 13, 2016 at 3:11 PM, Thomas Weise <th...@apache.org> wrote:

> Hi,
>
> The apex CLI an also be used in batch mode
>
> -e <single cmd>
>
> you can also use a script file like so:
>
> apex < mycmds.txt
>
> Other apex CLI documentation is here:
>
> http://apex.apache.org/docs/apex/apex_cli/
>
> We will add above to it.
>
> HTH,
> Thomas
>
>
>
> On Tue, Sep 13, 2016 at 1:02 PM, Meemee Bradley <me...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I am new to Apache Apex. I have a script to monitor submitted Apex
>> application using yarn utilities, when application fails, if application
>> can not relaunch/recover by itself, I would like to launch the application
>> again. Currently, I can do that by using Apex CLI, and launch the
>> application with original ID interactively. I would prefer to launch the
>> application again from a script without using Apex CLI interactively. Any
>> ideas regarding how do I accomplish that?
>>
>> Thanks!
>>
>>
>

Re: Can Apex launch command be submitted without using Apex CLI interactively?

Posted by Thomas Weise <th...@apache.org>.
Hi,

The apex CLI an also be used in batch mode

-e <single cmd>

you can also use a script file like so:

apex < mycmds.txt

Other apex CLI documentation is here:

http://apex.apache.org/docs/apex/apex_cli/

We will add above to it.

HTH,
Thomas



On Tue, Sep 13, 2016 at 1:02 PM, Meemee Bradley <me...@gmail.com>
wrote:

> Hi,
>
> I am new to Apache Apex. I have a script to monitor submitted Apex
> application using yarn utilities, when application fails, if application
> can not relaunch/recover by itself, I would like to launch the application
> again. Currently, I can do that by using Apex CLI, and launch the
> application with original ID interactively. I would prefer to launch the
> application again from a script without using Apex CLI interactively. Any
> ideas regarding how do I accomplish that?
>
> Thanks!
>
>