Skip to content

Commit 375a2bc

Browse files
authored
Update README.md
1 parent 5dc237a commit 375a2bc

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

README.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,37 @@
1+
## Setup instructions:
2+
3+
* Install JDK: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html (JDK 8).
4+
* Install sbt:
5+
Mac: http://www.scala-sbt.org/release/docs/Installing-sbt-on-Mac.html (you can use `brew`, it will install the latest).
6+
Win: http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Windows.html
7+
* Install Intellij:
8+
Mac: https://www.jetbrains.com/idea/download/#section=mac
9+
Win: https://www.jetbrains.com/idea/download/#section=windows
10+
* 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+
131
# Different ways to execute the code
232

333
`sbt test` - executes all tests
434

535
`sbt run` - executing Main with Spark in-memory
636

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

Comments
 (0)