Init script fails to download Maven JAR

Cluster init script fails to download a Maven JAR when trying to install a library.

Written by arvind.ravish

Last published at: May 11th, 2022


You have an init script that is attempting to install a library via Maven, but it fails when trying to download a JAR.
Resolving (
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-07-30 01:31:11 ERROR 404: Not Found.


There is a carriage return (%0D) character at the end of one or more of the lines in the init script.

This is usually caused by editing a file in Windows and then uploading it to your Databricks workspace without removing the excess carriage returns.


Remove the Windows carriage returns by running dos2unix on the file after you have uploaded it to the workspace.


sudo apt-get install dos2unix -y
dos2unix file <>

Once you have removed the Windows carriage returns from the file, you can configure the init script as normal.

Was this article helpful?