Class InProcessLauncher


public class InProcessLauncher extends AbstractLauncher<InProcessLauncher>
In-process launcher for Spark applications.

Use this class to start Spark applications programmatically. Applications launched using this class will run in the same process as the caller.

Because Spark only supports a single active instance of SparkContext per JVM, code that uses this class should be careful about which applications are launched. It's recommended that this launcher only be used to launch applications in cluster mode.

Also note that, when running applications in client mode, JVM-related configurations (like driver memory or configs which modify the driver's class path) do not take effect. Logging configuration is also inherited from the parent application.