A user-friendly way of provisioning a cluster for the big data framework Hadoop. This application contains a React Frontend and a Flask API. Both of these work together to spin up Docker-based Hadoop Cluster. The React frontend will walk you through what Hadoop is and help you quickly start up a Hadoop cluster.
Start up the container for each service
docker run -dp 5000:5000 -v //var/run/docker.sock:/var/run/docker.sock -v //usr/bin/docker:/usr/bin/docker --name hadoopapi johnnoon74/hadoopapi:latest
docker run -dp 3000:3000 --name hadoopcreator johnnoon74/hadoopcreator:latest
Flask API
- navigate to
<project root>/flask-api
- run docker command
docker build -t flask-api .
React Frontend (hadoop-creator)
- navigate to
<project root>/hadoop-creator
- run docker command
docker build -t hadoop-creator .
Flask API
docker run -dp 5000:5000 -v //var/run/docker.sock:/var/run/docker.sock -v //usr/bin/docker:/usr/bin/docker flask-api
React Frontend
docker run -dp 3000:3000 hadoop-creator
Note: Make sure both the React UI and the API started up with no issues
docker ps
to see all running containers. or see them via Docker Desktop
- navigate to browser - http://localhost:3000/
- Read through welcome page to get started quickly
Flask API
- Prerequisite: Have Python and Docker installed. This API will run Docker commands to start Hadoop containers
- Open a cmd terminal and navigate to
<project root>/flask-api
- run
python -m pip install -r requirements.txt
- run
python -m flask run --host=0.0.0.0
React Frontend
- Prerequisite: Have Node.js installed.
- Open a cmd terminal and navigate to
<project root>/hadoop-creator
- run
npm install
- run
npm run start