Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
About
People
Publications
Teaching
Resources
Research Blog
Wiki Functions
Recent changes
Help
Licensing
Project page
Discussion
Edit
View history
Editing
CommunityData:Klone
(section)
From CommunityData
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Spark == To set up a spark cluster using apptainer the first step to "run" the container on each node in the cluster: <syntaxhighlight lang='bash'> # on the first node apptainer instance start --fakeroot cdsc_base.sif spark-boss export SPARK_BOSS=$(hostname) # on the first worker node (typically same as boss node) apptainer instance start --fakeroot cdsc_base.sif spark-worker-1 # second worker node apptainer instance start --fakeroot cdsc_base.sif spark-worker-2 </syntaxhighlight> The second step is to start the spark services on the instances <syntaxhighlight lang='bash'> apptainer exec instance://spark-boss /opt/spark/sbin/start_master.sh apptainer exec instance://spark-worker-1 /opt/spark/sbin/start-worker.sh $SPARK_BOSS:7077 </syntaxhighlight> That should be it. Though in practice it might make more sense to have special containers for the spark boss and workers. You can now submit spark jobs by running <code>spark-submit.sh</code>. <syntaxhighlight lang='bash'> # replace n3078 with the master hostname apptainer exec instance://spark-boss /opt/spark/bin/spark --master spark://n3078.hyak.local:7077 </syntaxhighlight> Nate's working on wrapping the above nonsense in friendlier scripts.
Summary:
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see
CommunityData:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Tools
What links here
Related changes
Special pages
Page information