How to restart Apache Apex application?

六眼飞鱼酱① 提交于 2019-12-24 01:36:06

问题


From the apex documentation, it is clear that an app launched with apache apex can be killed or shutdwon using the commands: kill-app & shutdown-app respectively.

But, when the application is turned off (shutdown/kill), how to restart it from its previous state?


回答1:


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.



来源:https://stackoverflow.com/questions/37784367/how-to-restart-apache-apex-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!