cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Installing libraries on job clusters

erigaud
Honored Contributor

Simple question : what is the way to go to install libraries on job clusters ? There does not seem to be a "Libraries" tab on the UI as opposed to regular clusters. Does it mean that the only option is to use init scripts ? 

1 ACCEPTED SOLUTION

Accepted Solutions

Tharun-Kumar
Databricks Employee
Databricks Employee

@erigaud 

You can traverse to the Tasks section of the job and to the first task in your job. Under the task properties, you would be seeing Dependent libraries using which you can install libraries from maven or python or even a custom JAR.

Screenshot 2023-07-12 at 10.14.27 AM.png

View solution in original post

9 REPLIES 9

ranged_coop
Valued Contributor II

In the job, you would have the dependent library option, where you can mention the libraries you need installed. They will get installed on the job cluster before the job starts. This link might be useful...

Tharun-Kumar
Databricks Employee
Databricks Employee

@erigaud 

You can traverse to the Tasks section of the job and to the first task in your job. Under the task properties, you would be seeing Dependent libraries using which you can install libraries from maven or python or even a custom JAR.

Screenshot 2023-07-12 at 10.14.27 AM.png

erigaud
Honored Contributor

Will installing a lib on a task for a job make this lib available for all the other tasks aswell ? (assuming they all use the same cluster)

 

Tharun-Kumar
Databricks Employee
Databricks Employee

@erigaud Yes it will be available for all the subsequent tasks on the cluster.

MouhannadOweis
New Contributor II

How can you do this in ADF?

@MouhannadOweis 
You can also add libraries to ADF Databricks task.

daniel_sahal_0-1714022026231.png

 

Thank you that worked.

brushdoylt
New Contributor II

@daniel_sahalflappy bird

Is there another way to add libraries to the ADF Databricks task even faster?

imsabarinath
New Contributor III

You may want to copy required libs to a volume and load it during cluster setup to avoid downloading the libs for every run.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group