cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to install GDAL on Databricks Cluster ?

Jain
New Contributor III

I am currently using Runtime 10.4 LTS.

The options available on Maven Central does not work as well as on PyPi.

I am running:

try:
 
  from osgeo import gdal
 
except ImportError:
 
  import gdal

to validate but it throws

ModuleNotFoundError: No module named 'gdal'

1 REPLY 1

Aviral-Bhardwaj
Esteemed Contributor III

@Abhishek Jain​  I can understand your issue it happens to me also multiple times so solving this issue I used to install the init script in my cluster

Major reason is that your 10X version does not support your current library so you have to find right package for your 10X machine

and you can create init script using this link -- https://docs.databricks.com/clusters/init-scripts.html

Thanks

Aviral

AviralBhardwaj

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