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: 

Time-out when using init script to install GDAL

meystingray
New Contributor II

I'm following this post to run an init script to install gdal.

https://community.databricks.com/t5/get-started-discussions/gdal-on-databricks-cluster-runtime-12-2-...

My script is simply:

--------------
#!/bin/bash
apt-get update && apt-get upgrade
apt-get install gdal*
--------------
This should be simple enough.  However when starting the cluster, the script runs for an hour and then times out.  What gives?  How to fix?

 

2 REPLIES 2

Really appreciate the response, @Retired_mod.  So using your advice, I tried commenting out various parts of the script, but kept getting an error of the type: "Init script failure:
Cluster scoped init script /Users/XYZ/gdal_install.sh failed: Script exit status is non-zero"

The only thing that worked was:

apt-get update

I'm trying to install gdal on a Databricks Runtime Version 13.2 ML.  Thanks, Sean

-werners-
Esteemed Contributor III

you could skip the upgrade part and just go for the gdal install instead.

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