Activate on All-Purpose ComputeΒΆ

You can activate the Xonai Accelerator on all-purpose compute clusters after you have installed Xonai in your Workspace.

The first step is to define the Xonai init script you created:

  1. Navigate to Compute > All-purpose compute from the left navigation panel.

  2. Edit an existing compute or create a new compute in Create compute top right corner.

  3. Click Advanced options to expand the section and then click Init Scripts tab.

  4. Select Workspace as Source and then select the Xonai init script you created.

On completion it should look like this:

../_images/dbx-xonai-init-script.png

The second step is to define the required configuration for your Spark jobs:

  1. In the same Advanced options section, click Spark tab.

  2. Copy the recommended configuration for on your cluster instance type.

On completion it should look like this:

../_images/dbx-xonai-spark-conf.png

Your cluster is now configured to run the Xonai Accelerator in your Spark jobs.