Skip to main content
Databricks

Creating a Databricks assignment in Vocareum

K
Written by Kevin Wesley
Updated over a week ago

Container Architecture lab types are in general release. Please contact support@vocareum.com to set up a compatible course.

Creating a Databricks Assignment

From your course page select "Edit Assignments" and "New Assignment" below.

Enter the assignment name and select "Save and continue".

Next create a part for the new assignment. Selecting "+" under Parts.

Give the part a name and hit "Save Part".

Configure Workspace and File System

Now that your Databricks assignment is created select Configure Workspace to launch the "Teacher View".

On the left side of the IDE is the file tree. Here is a list of all directories that are created by the platform -

  • /voc/course - common to the entire course and not visible to learners

  • /voc/data - lab level directory which is visible to the learner

  • /voc/docs - README.md should go here

  • /voc/private - this is a directory for storing lab level resources not visible to the learners

  • /voc/public - lab level directory which is visible to the learner

  • /voc/scripts - store grading scripts here as grade.sh

  • /voc/startercode - store all the content here which is copied to the /home/labsuser directory for the learner

  • /home/labsuser - used for creating quiz.md before running "Generate Quiz" operation. This directory can also be used to develop and test startercode, scripts, etc.

Scripts

Scripts can be used to prepare a user's workspace on Databricks. There are 4 types of scripts:

  • workspace_init.sh

    • run after a workspace is created

  • lab_setup.sh

    • run when a lab is started

  • user_setup.sh

    • run when a lab is started and after lab_setup.sh if it exists

  • lab_end.sh

    • run when a lab is ended

If they are created under /voc/scripts, then they will be run.

Within the Part level settings you will have the option to set the maximum number of users in a workspace. As well as the ability to set End Lab functionality to either stop resources created by the user, to start again in another session. Or terminate them entirely.

Detailed documentation on scripts can be found here

Admin Access to Databricks

Org admins and instructors can enter the Databricks workspace as an admin by clicking on the workspace URL in the workspaces table on the Databricks Workspaces page.

As an org admin:

Databricks Workspace link on the home page

As an instructor:

Databricks Workspace link under the Dashboard dropdown

Did this answer your question?