Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

239
Vistas
Programming Apache spark 2.0 with kotlin

I want to use kotlin for programming in Spark 2.0.

I added spark's jar files and I can use JavaSparkContext in my code but Can not use kotlin in spark 2.0.

when I use SparkSession like this:

SparkSession sc = SparkSession.builder(). ...

I get this error: Unresolved refrence: sparkSession

Is it possible to use Kotlin for programming in Spark 2.0? If yes, How can I do that?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Is it possible to use Kotlin for programming in Spark 2.0?

Yes, it's a JVM language with very good Java interoperation, and Spark can be used from Java.

If yes, How can I do that?

Take the Java examples (not the Scala ones) and convert them to Kotlin.

SparkSession sc = SparkSession.builder()

isn't legal Kotlin (and wouldn't produce the error you give, since it doesn't have any mention of sparkSession). It should be

val sc = ...

or

val sc: SparkSession = ...
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda