Files
floci/.github
Priamo Germosen a1b96f5c3f fix(emr-containers): give a managed endpoint's Scala kernel Toree's magics (#9313)
Toree finds its built-in magics (%AddJar, %AddDeps, %LsMagic, %%sql,
%%dataframe and the rest) by scanning its own jar for plugin classes,
and its class finder reads each entry's name through a reflective call
to JarFile$JarFileEntry.getName(). The notebook image's Java 17 refuses
that call unless java.util.jar is open to the caller, so the scan
failed ("PluginSearcher: Failed to load class info from classpath",
an InaccessibleObjectException) and the kernel started with no magics.

- The Scala kernel spec exports JDK_JAVA_OPTIONS with
  --add-opens=java.base/java.util.jar=ALL-UNNAMED, after any value
  already set, before it runs spark-submit. Java reads the variable
  itself, so the image's spark.driver.extraJavaOptions stay as they
  are, where --driver-java-options would replace them. The option
  comes from EmrServerlessSparkRunner.javaBaseOpens, which now builds
  YARN's options from their package list too.
- The nightly check's Scala kernel adds a jar with %AddJar, then
  compiles a cell against a class in it. Its method's timeout grows by
  the two cells' four minutes, and the docker-runner group's with it.
2026-11-23 21:16:50 -04:00
..