Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
main
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDIS
Computer Sciences
Courses
CS544
s25
main
Commits
28ae67b1
Commit
28ae67b1
authored
1 week ago
by
TYLER CARAZA-HARTER
Browse files
Options
Downloads
Patches
Plain Diff
lec 20
parent
05a7ac90
Branches
sadBucky
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lec/20-spark/Dockerfile
+15
-0
15 additions, 0 deletions
lec/20-spark/Dockerfile
lec/20-spark/docker-compose.yml
+29
-0
29 additions, 0 deletions
lec/20-spark/docker-compose.yml
with
44 additions
and
0 deletions
lec/20-spark/Dockerfile
0 → 100644
+
15
−
0
View file @
28ae67b1
FROM
ubuntu:24.04
RUN
apt-get update
;
apt-get
install
-y
wget curl openjdk-11-jdk python3-pip nano
# SPARK
RUN
wget https://archive.apache.org/dist/spark/spark-3.5.5/spark-3.5.5-bin-hadoop3.tgz
&&
tar
-xf
spark-3.5.5-bin-hadoop3.tgz
&&
rm
spark-3.5.5-bin-hadoop3.tgz
# HDFS
RUN
wget https://dlcdn.apache.org/hadoop/common/hadoop-3.3.6/hadoop-3.3.6.tar.gz
&&
tar
-xf
hadoop-3.3.6.tar.gz
&&
rm
hadoop-3.3.6.tar.gz
# Jupyter
RUN
pip3
install
jupyterlab
==
4.3.5
pandas
==
2.2.3
pyspark
==
3.5.5
--break-system-packages
ENV
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
ENV
PATH="${PATH}:/hadoop-3.3.6/bin"
ENV
HADOOP_HOME=/hadoop-3.3.6
This diff is collapsed.
Click to expand it.
lec/20-spark/docker-compose.yml
0 → 100644
+
29
−
0
View file @
28ae67b1
services
:
nb
:
image
:
spark-demo
ports
:
-
"
127.0.0.1:5000:5000"
-
"
127.0.0.1:4040:4040"
volumes
:
-
"
./nb:/nb"
command
:
python3 -m jupyterlab --no-browser --ip=0.0.0.0 --port=5000 --allow-root --NotebookApp.token=''
nn
:
image
:
spark-demo
hostname
:
nn
command
:
sh -c "hdfs namenode -format -force && hdfs namenode -D dfs.replication=1 -fs hdfs://nn:9000"
dn
:
image
:
spark-demo
command
:
hdfs datanode -fs hdfs://nn:9000
spark-boss
:
image
:
spark-demo
hostname
:
boss
command
:
sh -c "/spark-3.5.5-bin-hadoop3/sbin/start-master.sh && sleep infinity"
spark-worker
:
image
:
spark-demo
command
:
sh -c "/spark-3.5.5-bin-hadoop3/sbin/start-worker.sh spark://boss:7077 -c 2 -m 2g && sleep infinity"
deploy
:
replicas
:
2
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment