Available for Enterprise Edition only.
Prerequisites
Before you set up Prophecy libraries in a Databricks volume, you need to know which library version your project uses. That version must be present in the volume for the setup to work. To check your project’s Prophecy library version:- Open your project metadata.
- Click on the Dependencies tab.
- Find the relevant Prophecy library (Scala or Python) and note the version.
If using ProphecyLibsScala, you can look up versions on Maven
Repository that are compatible with
your Spark version.
Prepare a Databricks volume
To get started, you’ll need to define a Databricks volume where you will store the Prophecy libraries.-
Create a volume in your workspace where you’ll maintain Prophecy libraries:
Download library dependencies
Depending on your Databricks Runtime version, you will need to download certain additional libraries (Python only).Databricks Runtime 16.4 and 17.3 LTS
Databricks Runtime 16.4 and 17.3 LTS
Review the following required and optional libraries:
| Name | Version | Purpose | Wheel file |
|---|---|---|---|
| pyhocon | 0.3.59 or later | General purpose dependency | pyhocon-0.3.61-py3-none-any.whl |
| hvac | 2.3.0 | To access Hashicorp secrets | hvac-2.3.0-py3-none-any.whl |
| zstandard | 0.23.0 or later | (Optional) For selective data sampling performance improvements | zstandard-0.25.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| msgspec | 0.18.6 or later | (Optional) For selective data sampling performance improvements | msgspec-0.20.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
Databricks Runtime 15.4 LTS
Databricks Runtime 15.4 LTS
Review the following required and optional libraries:
| Name | Version | Purpose | Wheel file |
|---|---|---|---|
| pyhocon | 0.3.59 or later | General purpose dependency | pyhocon-0.3.61-py3-none-any.whl |
| hvac | 2.3.0 | To access Hashicorp secrets | hvac-2.3.0-py3-none-any.whl |
| zstandard | 0.23.0 or later | (Optional) For selective data sampling performance improvements | zstandard-0.25.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| msgspec | 0.18.6 or later | (Optional) For selective data sampling performance improvements | msgspec-0.20.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
Databricks Runtime 13.3 and 14.3 LTS
Databricks Runtime 13.3 and 14.3 LTS
Review the following required and optional libraries:
| Name | Version | Purpose | Wheel file |
|---|---|---|---|
| pyhocon | 0.3.59 or later | General purpose dependency | pyhocon-0.3.61-py3-none-any.whl |
| hvac | 2.3.0 | To access Hashicorp secrets | hvac-2.3.0-py3-none-any.whl |
| zstandard | 0.23.0 or later | (Optional) For selective data sampling performance improvements | zstandard-0.25.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| msgspec | 0.18.6 or later | (Optional) For selective data sampling performance improvements | msgspec-0.20.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
Databricks Runtime 12.2 LTS
Databricks Runtime 12.2 LTS
Review the following required and optional libraries:
| Name | Version | Purpose | Wheel file |
|---|---|---|---|
| pyhocon | 0.3.59 or later | General purpose dependency | pyhocon-0.3.61-py3-none-any.whl |
| hvac | 2.3.0 | To access Hashicorp secrets | hvac-2.3.0-py3-none-any.whl |
| zstandard | 0.23.0 or later | (Optional) For selective data sampling performance improvements | zstandard-0.25.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| msgspec | 0.18.6 or later | (Optional) For selective data sampling performance improvements | msgspec-0.20.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
- Download the appropriate wheel files for each dependency you need to install. Refer to the tables above for the specific wheel file names based on your Databricks Runtime version.
-
Upload each dependency to the volumes path. Repeat this step for every dependency:
-
Create a local Init Script that installs all dependencies. For example, create
install_dependencies.shwith the following content, including all dependencies you uploaded: -
Upload the script to your volumes path.
Upload Prophecy libraries
Download the appropriate Prophecy library versions from the public buckets and upload them to the same volume path. Replace<version> in the example URLs based on what’s used in your Prophecy project.
-
ProphecyPythonLibs
-
ProphecyScalaLibs
Update fabric configuration
For all relevant Databricks fabrics, you’ll need to update the location of the Prophecy libraries.- Open the fabric settings.
- Toward the end of the page, find the Prophecy Library settings.
- For Scala and/or Python, change the Resolution mode to File System.
-
Under Path, add the volume path that you created earlier.
Example:
/Volumes/<your-volume-location>/prophecy-libs/ - Click Update to save this change.

