Activate on All-Purpose Compute¶
You can activate the Xonai Accelerator on all-purpose compute clusters after you have installed Xonai in a Unity Catalog volume.
The first step is to define the Xonai init script you created:
Navigate to Compute > All-purpose compute from the left navigation panel.
Edit an existing compute or create a new compute in Create compute top right corner.
Uncheck Use Photon Acceleration in Performance panel.
Click Advanced options to expand the section and then click Init Scripts tab.
Select Volume as Source and then select the Xonai init script you created.
On completion it should look like this:
Note
If you installed Xonai on DBFS, select the xonai-init.sh
from the Workspace path instead.
The second step is to define the required configuration for your Spark jobs. In the same Advanced options section, click Spark tab and copy the following code to Spark config.
spark.plugins com.xonai.spark.SQLPlugin
On completion it should look like this:
Your cluster is now configured to run the Xonai Accelerator in your Spark jobs.