In addition to the methods mentioned by others, there is also the REST API
documented
at: http://docs.datatorrent.com/dtgateway_api/

The calls:

*POST /ws/v2/appPackages?merge={replace|fail|ours|theirs}*
POST
/ws/v2/appPackages/{owner}/{packageName}/{packageVersion}/applications/{appName}/launch[?config={configName}&originalAppId={originalAppId}&queue={queueName}]
will upload and launch an application respectively.

There is a Python script that uses the REST API to monitor an application
which can
be adapted for your scenario; it is available here:

https://github.com/DataTorrent/examples/tree/master/tools

Ram

On Thu, Dec 15, 2016 at 9:31 PM, Sunil Parmar <[email protected]>
wrote:

> Is it possible to script / shell script start up and shutdown script for
> launching apex app. We’re using dtcli console to launch the apps but we
> would want to create a unified scripts that checks some additional checks
> outside apex before launching the app. Similarly we would want to create
> shutdown script to allow clean shutdown. Any example or documentation helps
> !
>
> Thanks,
> Sunil
>

Reply via email to