You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Install Scala plugin for IJ: Intellij -> Preferences -> Plugins -> Search for official Scala plugin.
11
+
* Clone this repo: `git clone https://github.com/katrinsharp/spark-sample-project.git`
12
+
13
+
## Verify
14
+
15
+
* Open up a CLI (command line) and `cd` to root folder of this repo. Type:
16
+
17
+
```
18
+
> sbt
19
+
```
20
+
You should see `>` after it's updating some its dependencies (Use `exit` for quitting). Now type:
21
+
22
+
```
23
+
> console
24
+
```
25
+
26
+
You should see `scala>` after some more updates (Use `:q` for quitting). You're ready to go with Scala CLI.
27
+
28
+
* Open the cloned project in IJ: File -> New -> Project from existing sources. You're ready to go with IJ.
29
+
30
+
1
31
# Different ways to execute the code
2
32
3
33
`sbt test` - executes all tests
4
34
5
35
`sbt run` - executing Main with Spark in-memory
6
36
7
-
`sbt assembly` - creates a self-contained jar: `spark-sample-project/target/scala-2.11/spark-sample-project-assembly-0.1.jar` that can be submitted to Spark cluster
37
+
`sbt assembly` - creates a self-contained jar: `spark-sample-project/target/scala-2.11/spark-sample-project-assembly-0.1.jar` that can be submitted to Spark cluster
0 commit comments