Github user squito commented on a diff in the pull request:
https://github.com/apache/spark/pull/7052#discussion_r37814481
--- Diff:
launcher/src/main/java/org/apache/spark/launcher/SparkLauncher.java ---
@@ -323,6 +341,40 @@ public SparkLauncher setVerbose(boolean verbose) {
* @return A process handle for the Spark app.
*/
public Process launch() throws IOException {
+ return createBuilder().start();
+ }
+
+ /**
+ * Starts a Spark application.
+ * <p/>
+ * This method returns a handle that provides information about the
running application and can
+ * be used to do basic interaction with it.
+ *
+ * @since 1.5.0
+ * @param listeners Listeners to add to the handle before the app is
launched.
+ * @return A handle for the launched application.
--- End diff --
can you add a comment on `launch()` that `startApplication()` is generally
preferred?
---
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]