Cluster-Scoped Installation¶
The Xonai Accelerator can be installed on a cluster via an init script that copies the plugin JAR to a location where driver library dependencies are referenced. It is then activated on Spark jobs by adding a few extra properties to Spark configuration.
Supported Types of Compute¶
The Xonai Accelerator can be activated in the following types of compute:
All-purpose compute.
Job compute.
Info
Support for other types of compute may be added in the future.
For more information about Databricks types of compute, please refer to the Databricks compute documentation.
Supported Databricks Runtime Versions¶
The Xonai Accelerator is compatible with the Databricks runtime versions listed as shown in the following table, with the corresponding JAR artifact name for each processor type:
Databricks release |
Processor |
Xonai Accelerator JAR |
---|---|---|
15.4 LTS |
Intel / AMD |
xonai-spark-plugin-dbx-15.4-<release>-stable-linux-amd64.jar |
ARM / Graviton |
xonai-spark-plugin-dbx-15.4-<release>-stable-linux-arm64.jar |
|
14.3 LTS |
Intel / AMD |
xonai-spark-plugin-dbx-14.3-<release>-stable-linux-amd64.jar |
ARM / Graviton |
xonai-spark-plugin-dbx-14.3-<release>-stable-linux-arm64.jar |
|
13.3 LTS |
Intel / AMD |
xonai-spark-plugin-dbx-13.3-<release>-stable-linux-amd64.jar |
ARM / Graviton |
xonai-spark-plugin-dbx-13.3-<release>-stable-linux-arm64.jar |
|
12.2 LTS |
Intel / AMD |
xonai-spark-plugin-dbx-12.2-<release>-stable-linux-amd64.jar |
ARM / Graviton |
xonai-spark-plugin-dbx-12.2-<release>-stable-linux-arm64.jar |
|
11.3 LTS |
Intel / AMD |
xonai-spark-plugin-dbx-11.3-<release>-stable-linux-amd64.jar |
ARM / Graviton |
xonai-spark-plugin-dbx-11.3-<release>-stable-linux-arm64.jar |
|
10.4 LTS |
Intel / AMD |
xonai-spark-plugin-dbx-10.4-<release>-stable-linux-amd64.jar |
ARM / Graviton |
xonai-spark-plugin-dbx-10.4-<release>-stable-linux-arm64.jar |
|
9.1 LTS |
Intel / AMD |
xonai-spark-plugin-dbx-9.1-<release>-stable-linux-amd64.jar |
ARM / Graviton |
xonai-spark-plugin-dbx-9.1-<release>-stable-linux-arm64.jar |
For more information about Databricks runtime releases, please refer to the Databricks release notes.
Create an Init Script¶
To create an init script that install Xonai Accelerator JAR in a Compute cluster:
Navigate to Workspace > Home from the left navigation panel.
Click Create > File at the top right corner.
Enter the file name
xonai-init.sh
.Copy the following content and change the placeholders as described after:
1 2
%sh cp /dbfs/xonai/xonai-spark-plugin-dbx-<release>-<version>-stable-linux-<arch>.jar /databricks/jars/
Change
<runtime>
,<release>
and<arch>
placeholders with:The Databricks runtime version you are using (e.g.
14.3
)The Xonai JAR release version you want to use
The Worker processor architecture:
amd64
for Intel/AMD orarm64
for Graviton/ARM
Info
You may want to create multiple configuration scripts with distinct names if you are using multiple Databricks runtime versions and processor architectures in your workspace.
For more information about cluster-scoped init scripts, please refer to the Databricks script documentation.
Next Steps¶
Please refer to our activation guides to learn how to activate the Xonai Accelerator for the different types of Databricks compute with the init script created in this page.