Github user andrewor14 commented on the pull request:
https://github.com/apache/spark/pull/5297#issuecomment-89392079
@tgravescs @WangTaoTheTonic I wonder whether we should just use
`monitorApplication(appId, returnOnRunning = true)`. It is fire-and-forget to
the extent that once we know that an application is running or failed we exit
immediately. This is also what we do in standalone cluster mode. Otherwise, I
think just printing the first application report is not particularly useful,
since we don't know whether the application is actually running.
An argument against doing `returnOnRunning`, however, is that if the
cluster doesn't have enough resources we could theoretically wait an infinite
amount of time before exiting. I believe standalone cluster mode has the same
behavior. Any thoughts?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]