Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!