jove.spark.SparkModule.scala Maven / Gradle / Ivy
The newest version!
package jove
package spark
object SparkModule extends Module {
lazy val sparkVersion = jove.spark.helpers.BuildInfo.sparkVersion split '.' take 2 mkString "."
lazy val isDefault = jove.spark.helpers.BuildInfo.isDefaultSpark
private lazy val nameSuffix = if (isDefault) "" else s" $sparkVersion"
def kernels: Map[String, (Kernel, KernelInfo)] =
Map(
s"spark" -> (SparkKernel, KernelInfo(s"Spark$nameSuffix", List("snb")))
// s"sparkembedded" -> (EmbeddedSparkInterpreterKernel, KernelInfo(s"Spark$nameSuffix (embedded)", List("snb")))
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy