An open API service indexing awesome lists of open source software.

https://github.com/eocode/docker-spark-big-data

Exercises in Spark with Docker and Data Languages
https://github.com/eocode/docker-spark-big-data

big-data data-science docker java python scala spark

Last synced: 2 months ago
JSON representation

Exercises in Spark with Docker and Data Languages

Awesome Lists containing this project

README

          

# Spark Projects with Docker

Project build using: https://github.com/big-data-europe/docker-spark

Supported versions:

* Spark 3.0.0 for Hadoop 3.2 with OpenJDK 8 and Scala 2.12
* Spark 2.4.5 for Hadoop 2.7+ with OpenJDK 8

## How to start

```bash
docker-compose up
```

Master:
http://localhost:8080

Workers:

http://localhost:8081

http://localhost:8082

## Execute container with worker 1

```sh
docker exec -it spark-worker-1 bash
```

## Python examples

Run pyspark CLI:

```sh
# Run pyspark CLI
./spark/bin/pyspark

# Execute a file
cd home/python/example
./../../../spark/bin/spark-submit example.py data.csv
```

**Spark monitor:**

http://localhost:4040

http://localhost:4041

apk add gcc
pip3 install notebook