containers icon indicating copy to clipboard operation
containers copied to clipboard

Custom Jars - Databricks Docker Cluster

Open aman-solanki-kr opened this issue 2 years ago • 3 comments

BASE IMAGE - databricksruntime/python:10.4-LTS

I successfully installed the Python dependencies, and the tasks that depend on python in the workflow run fine, but I’m struggling to install the Maven and Jar dependencies.

The jar files are in the docker image (databricks/jars) and are visible in the spark environment path when the cluster starts, but when I trigger the workflow, I see a “Java Package not callable error” since the script is unable to use the classes in the jar files.

aman-solanki-kr avatar May 04 '23 19:05 aman-solanki-kr

@evanye

aman-solanki-kr avatar May 04 '23 19:05 aman-solanki-kr

@aman-solanki-kr Try filing a support ticket with your support rep. Unfortunately I don't know the answer to this.

evanye avatar May 10 '23 07:05 evanye

Just add your jars to /databricks/python3/lib/python3.10/site-packages/pyspark/jars. This is the location for pyspark jars.

Nicbyte avatar Mar 11 '24 14:03 Nicbyte