Class JavaModuleOptions

Object
org.apache.spark.launcher.JavaModuleOptions

public class JavaModuleOptions extends Object
This helper class is used to place some JVM runtime options(eg: `--add-opens`) required by Spark when using Java 17. `DEFAULT_MODULE_OPTIONS` has added `-XX:+IgnoreUnrecognizedVMOptions` to be robust.
Since:
3.3.0
  • Constructor Details

    • JavaModuleOptions

      public JavaModuleOptions()
  • Method Details

    • defaultModuleOptions

      public static String defaultModuleOptions()
      Returns the default JVM runtime options used by Spark.
    • defaultModuleOptionArray

      public static String[] defaultModuleOptionArray()
      Returns the default JVM runtime option array used by Spark.