Skip to content

Commit 191fcf5

Browse files
authored
Create pyspark_local_install.md
1 parent 9974302 commit 191fcf5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

pyspark_local_install.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# PySpark local development
2+
When using PySpark it is necessary to connect to a Spark runtime. A single node runtime is automatically installed when installing PySpark (e.g. through poetry or pip), which can be used for local development. To use PySpark, Java is required. On macOS this can be installed using several options.
3+
4+
After installation PySpark should work from the terminal (open a new one to make sure the new profile is sourced). VS Code might require a full reboot to find Java.
5+
6+
## Option 1 (20220811, MacBook M1)
7+
```
8+
brew install openjdk@11
9+
echo 'export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH"' >> ~/.zshrc # per brew install instructions
10+
```
11+
12+
## Option 2 (20220707)
13+
```
14+
brew tap adoptopenjdk/openjdk
15+
brew install adoptopenjdk13 --cask
16+
```
17+

0 commit comments

Comments
 (0)