How to debug Spark application on Spark Standalone?

后端 未结 4 1115
北恋
北恋 2020-12-13 20:02

I am trying to debug a Spark Application on a cluster using a master and several worker nodes. I have been successful at setting up the master node and worker nodes using Sp

4条回答
  •  旧时难觅i
    2020-12-13 20:47

    You could run the Spark application in local mode if you just need to debug the logic of your transformations. This can be run in your IDE and you'll be able to debug like any other application:

    val conf = new SparkConf().setMaster("local").setAppName("myApp")
    

    You're of course not distributing the problem with this setup. Distributing the problem is as easy as changing the master to point to your cluster.

提交回复
热议问题