Home > other >  Intellij IDEA run SparkPi instance
Intellij IDEA run SparkPi instance

Time:09-23


I want to be in Intellij IDEA developed on 2016 Spark program, learning stage, try to run a sample program, but the file is written like this

In SparkPi. Scala file right click on the run, pops out the interface

don't know the scratch what is the file? How to set?

Configuration is as follows:


CodePudding user response:

The common problem is suitable for direct baidu, and others answer is too slow,
Like this,,
Use IDEA development SPARK submit remote cluster is carried out

CodePudding user response:

Yeah yeah good complex,,

CodePudding user response:

Def main (args: Array [String]) {
Val spark=SparkSession
The builder
AppName (Spark "Pi"). The master (" local ")
GetOrCreate ()
  • Related