GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SmartDataInnovationLab/spark.condor: Submit file and shell script to start Apache Spark in standalone mode on HTCondor

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
helloworld.py
helloworld.py
 
 
spark.condor
spark.condor
 
 
spark.condor.sh
spark.condor.sh
 
 
spark.stop.sh
spark.stop.sh
 
 
spark.venv.sh
spark.venv.sh
 
 

Repository files navigation

Submit file and shell script to start Apache Spark in standalone mode on HTCondor

Prerequisites

  • htcondor (vanilla universe)
  • python3 pip and venv
  • network access between the cluster nodes

Preperation

Run ./spark.venv.sh to create a python venv with pyspark.

Note: the script deletes the symlink env/lib64 due the fact that htcondor transfers no symlinks (!?)

Running Spark in Standalone

run using condor_submit spark.condor -queue [num_workers]

The default worker size is 8 CPUs and 32G RAM. You may adjust this by using the appropriate -a flags on submit or editing the job file.

The script is currently activating a conda environment on the target node that is specified using the arguments of the executable.

Note: The master runs on the first worker node

Accessing the Cluster

The script generates two .url files containing the master url and webui url

You may check if things are working using (bash syntax) e.g. w3m $(<spark-webui.url)

You may submit a job using (bash syntax) e.g. source env/bin/activate; spark-submit --master $(<spark-master.url) helloworld.py

Note: that the python driver runs on the submitting node. So you probably also want to submit it as a job

Stopping the Cluster

To stop the jobs either call ./spark.stop.sh or manually delete spark-master.url

Links

  • http://research.cs.wisc.edu/htcondor/manual/current/condor_submit.html
  • https://spark.apache.org/docs/latest/spark-standalone.html

Other solutions

  • https://github.com/rlmv/spark-condor/

Notes: The parallel universe also works, however, the best effort scheduling of workers seems to be more fitting to me

About

Submit file and shell script to start Apache Spark in standalone mode on HTCondor

Topics

batch-processinghigh-throughput-computinghtcondorschedulerspark

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

5 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.