Pradeep, I don't think you can re-use an old app id in YARN, and I don't think it's a good idea even if it's possible, since the app id is supposedly globally unique to identify an application instance.
David On Tue, Mar 29, 2016 at 10:25 PM, pradeep kumbhar < [email protected]> wrote: > David, > I am not sure but can we restart the app in same directory as that of > killed app directory. That way copying of whole data for killed app (which > could be huge in some cases) will be avoided. > I know that currently when we restart the app, a new app_id is assigned to > it. Are there any complications in using the same app id and the directory? > > On Wed, Mar 30, 2016 at 10:51 AM, Thomas Weise <[email protected]> > wrote: > > > Ashwin, > > > > This is for restarting the application from previous state (configuration > > was already applied). > > > > You can change properties on the running app. > > > > Thomas > > > > On Tue, Mar 29, 2016 at 11:51 AM, Ashwin Chandra Putta < > > [email protected]> wrote: > > > > > +1 for this feature, this is help reduce the steps to relaunch an > > > application. If we do not have any changes to app package / properties, > > we > > > should be able to launch without providing app package/properties and > > > automatically picking the previously supplied properties file and > > > additional properties. > > > > > > Also, -conf, -apconf, -D <property>=<value> should be supported even > when > > > using the existing app package from HDFS. > > > > > > Regards, > > > Ashwin. > > > > > > On Tue, Mar 29, 2016 at 11:30 AM, David Yan <[email protected]> > > wrote: > > > > > > > The ability to restart an app without app package will require some > > > changes > > > > in Apex Core. > > > > > > > > I created a ticket to track this issue: > > > > > > > > https://issues.apache.org/jira/browse/APEXCORE-411 > > > > > > > > David > > > > > > > > On Tue, Mar 29, 2016 at 6:12 AM, Thomas Weise < > [email protected]> > > > > wrote: > > > > > > > > > It is possible to relaunch an application with new jar files. > > However, > > > we > > > > > should also have an option to restart with those already in HDFS. > > > > > > > > > > -- > > > > > sent from mobile > > > > > On Mar 29, 2016 3:35 AM, "pradeep kumbhar" < > > > [email protected]> > > > > > wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > I was using dtcli to restart a killed application and observed > that > > > we > > > > > need > > > > > > to provide application package file path as: > > > > > > > > > > > > dt> *launch -originalAppId application_1456301553414_0138 > > > > > > ~/pi-demo-3.1.1.apa* > > > > > > > > > > > > > > > > > > As per my knowledge, while doing a restart of killed app, we copy > > the > > > > > > contents of killed application directory to new application > > directory > > > > and > > > > > > then do the restart. > > > > > > > > > > > > The question I have is, if everything needed for app restart is > > > > available > > > > > > under killed application directory, why do we need to provide app > > > > package > > > > > > file path? > > > > > > > > > > > > -- > > > > > > *Regards,* > > > > > > *-pradeep* > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Regards, > > > Ashwin. > > > > > > > > > -- > > *Regards,* > *-pradeep* >
