Thursday, October 10, 2019

How to run apache Spark java examples in eclipse?

  1. Copy java examples to your working folder.

  2. Create eclipse project.



  3. Add external jar files from Spark.

  4. Modify code : add config("spark.master", "local")


  5. To execute, click Run > Run Configuration ..., set Program arguments


  6. The result is

No comments: