-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐞 Destination databricks: update jdbc driver to patch log4j (#7622)
* Download spark jdbc driver in build cmd * Download jdbc driver in ci integration test * Update comments * Set up cloud sdk * Add comments * Download jdbc driver from databricks directly * Update readme * Use unzip command * Install unzip for databricks * Add databricks build status * Close database * Log more error information * Close database when checking connection * Update spec
- Loading branch information
Showing
12 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
. tools/lib/lib.sh | ||
|
||
# Whoever runs this script must accept the following terms & conditions: | ||
# https://databricks.com/jdbc-odbc-driver-license | ||
_get_databricks_jdbc_driver() { | ||
local driver_zip="SimbaSparkJDBC42-2.6.21.1039.zip" | ||
local driver_file="SparkJDBC42.jar" | ||
local driver_url="https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.21/${driver_zip}" | ||
local connector_path="airbyte-integrations/connectors/destination-databricks" | ||
|
||
if [[ -f "${connector_path}/lib/${driver_file}" ]] ; then | ||
echo "[Databricks] Spark JDBC driver already exists" | ||
else | ||
echo "[Databricks] Downloading Spark JDBC driver..." | ||
curl -o "${connector_path}/lib/${driver_zip}" "${driver_url}" | ||
|
||
echo "[Databricks] Extracting Spark JDBC driver..." | ||
unzip "${connector_path}/lib/${driver_zip}" "${driver_file}" | ||
mv "${driver_file}" "${connector_path}/lib/" | ||
rm "${connector_path}/lib/${driver_zip}" | ||
fi | ||
} |