Skip to content
This repository was archived by the owner on May 8, 2023. It is now read-only.

cnoam/spark_local_env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use the instructions here to run your own environment of Spark on you local (Window/Mac/Linux) machine.

This installation uses Spark version 3.3

Instead of complicated installs, you will use a ready-made package called docker container. All you have to do is install the program that will run the containers, and a few supporting tools.

The program to run the container is called Docker. It is possible to use it from command line or as a GUI tool called Docker Desktop.
Even if using the DockerDesktop, you still have to do some operations from the command line.

The plan:

  1. install Docker (in Windows, also install WSL2 and ubuntu subsystem )
  2. get Spark (will be done automatically when calling run)
  3. use Jupyter notebook (by opening the browser on the link displayed by run)

Installing / Running

Windows:
install Docker Desktop.
install WSL2 as detailed in the instructions on the web
install ubuntu

Mac: see the doc "Spark local env for MAC" in the current directory.

linux:
install docker + docker-compose: sudo apt install -y docker docker-compose


After installation, verify it works by opening a terminal (in Windows, it must be the ubuntu console that you have once installing WSL2),
and type:

docker run hello-world

Open a terminal (in Windows, search "ubuntu")

Install this repo:
git clone https://github.com/cnoam/spark_local_env.git
cd spark_local_env
git checkout 94290

Run the command: ./run that internally runs docker-compose up -d

Stopping

As long as the program runs, it consumes CPU, so after you are done, please run docker-compose down or use the Docker Desktop

All your data is still saved and can be used the next run

Uninstalling

linux/mac

  $ docker-compose down
  $ docker kill `docker ps -aq`
  $ docker rm `docker ps -aq`
  $ docker rmi `docker images`

Now you can uninstall docker itself: sudo apt remove docker

Windows

Same as above + uninstall Docker Desktop

Troubleshooting

About

tiny environment for spark education using Docker and Kafka

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors