For lab2 we will be using the CHPC cluster (high-performance cluster service provided by the University of Utah) to process the data in a distributed environment (multiple nodes). In this README.md, we will be covering on how to create a CHPC account, launch a Spark Jupyter instance, run the tutorial and ultimately what to do in the assignment
- Step 1: Create a CHPC account
- Step 2: Set up resources for Lab 2
- Step 3: Launch Spark Jupyter
- Step 4: Work on the assignment
- Step 5: Verify connection
- Step 6: Resume work after the first run
- Step 7: Submitting the Assignment
Create a CHPC account by following this link:
https://www.chpc.utah.edu/role/user/student.php?class=CS4964
You will need this information:
- Class: CS4964
- Token: 3f1e9adee81a75e0
To verify whether the CHPC account is created, open any terminal/ command prompt from your local machine and SSH to notchpeak2 server by running in a terminal:
ssh <your uNID>@notchpeak2.chpc.utah.eduYou will be prompted to enter the password associated with your uNID. If the login succeeds, then CHPC is available for you to use.
In the terminal where you logged in using SSH, use the following commands to set up the project folder in CHPC.
mkdir -p ~/Documents
cd ~/Documents
git clone https://github.com/mirmahathir1/CS-6964-Spring-2026-Lab-2After completing the above steps, you should have the following files:
lab2_notebook.ipynb-> This notebook contains the lab2 questionslab2_tutorial.ipynb-> This notebook contains a lab2 tutorial. It is recommended you run this notebook first to familiarize yourself with the libraries/functions you need for this lab
You can access your jupyter notebook using the following link:
Specify 2 nodes, 8 hours and coestudent-np:coestudent-np:coestudent-np as the Account:Partition. Then press Launch.
https://ondemand-class.chpc.utah.edu/pun/sys/dashboard/batch_connect/sessions to see if your job is running. If you see the following Running status, then you may proceed with solving the assignment:
If you are seeing an error similar to the following screenshot, email helpdesk@chpc.utah.edu to solve the problem by including your ID, name, the course number and a screenshot of the problem.

Important Note: After 8 hours, you will have to submit another job using the above mentioned link to get additional 8 hour to work on your assignment. You may launch a spark job whenever your previous Spark job expires.
Press the following Connect to Jupyter button in this link.
You should expect the following screen in your browser:
Double click on Documents and go to CS-6964-Spring-2026-Lab-2. You should see the following content:
Run the lab2-notebook.ipynb up to the following cell. If the output is the same as below, then the setup is working. You might see a long list of 'Attempting port 4XXX' warnings. That's OK as long as the cell finishes running.
If you get an error containing PySparkRuntimeError or a similar Python exception not matching the above output- please contact the class TAs.
- Run all cells of
lab2_tutorial.ipynbto get familiar with Spark. - Start implementing your code in
lab2-notebook.ipynb - Your notebook edits are saved on CHPC whenever you press
Ctrl+S. - To resume where you left off, go to Step 4 and click
Connect to Jupyter. If you don’t see a runningSpark Jupyterjob, repeat Step 3. - Re-run all cells from the beginning up to the last cell you completed.
After completing all tasks, download the lab2-notebook.ipynb notebook file with all cells successfully run.

Upload the notebook file to canvas.





