mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 22:37:55 -05:00
Interactive endpoints "support the following kernels: Python 3, PySpark on Kubernetes, Apache Spark with Scala" (EMR on EKS Development Guide, "Overview of interactive endpoints"). A Floci endpoint's gateway had no Scala kernel. - The gateway program writes a spark-scala-kubernetes kernel spec, "Apache Spark with Scala", a name of Floci's beside the guide's spark-python-kubernetes, as the guide gives the Scala kernel none. It runs the image's Apache Toree, beside Jupyter Enterprise Gateway's Scala launcher, under spark-submit as Toree's own kernel spec does: org.apache.toree.Main with the connection file as its profile, after KERNEL_EXTRA_SPARK_OPTS. Its spark is a Spark session in Spark's local mode on Floci's S3, as the PySpark kernel's is. - The docs move the Scala kernel out of "Not emulated yet", and the endpoint role every kernel runs with out of it too: "All kernels and users that connect to the interactive endpoint utilize the role that you specified when you created the endpoint". - The nightly check lists the new kernel spec and counts an S3 file's lines in the Scala kernel. Kernel start, connection and deletion become helpers. The method's timeout and the docker-runner group's budget grow by its four minutes.