Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 580 Bytes

spark-debugging.adoc

File metadata and controls

18 lines (13 loc) · 580 Bytes

Debugging Spark using sbt

Use sbt -jvm-debug 5005, connect to the remote JVM at the port 5005 using IntelliJ IDEA, place breakpoints on the desired lines of the source code of Spark.

➜  sparkme-app  sbt -jvm-debug 5005
Listening for transport dt_socket at address: 5005
...

Run Spark context and the breakpoints get triggered.

scala> val sc = new SparkContext(conf)
15/11/14 22:58:46 INFO SparkContext: Running Spark version 1.6.0-SNAPSHOT
Tip
Read Debugging chapter in IntelliJ IDEA 15.0 Help.