Apache Apex provides a command line interface, "apex" (previously called "dtcli") script, to interact with the applications. Once an application is shut down or killed, you can restart it using following command:
launch pi-demo-3.4.0-incubating-SNAPSHOT.apa -originalAppId application_1465560538823_0074 -Ddt.attr.APPLICATION_NAME="Relaunched PiDemo" -exactMatch "PiDemo"
where,
-originalAppId
is ID of the original app. This will ensure that the operators continue from where the original app left-off.
-Ddt.attr.APPLICATION_NAME
gives the new name for relaunched app
-exactMatch
is used to specify the exact app name
Note that, -Ddt.attr.APPLICATION_NAME
& -exactMatch
are optional.