-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move long bash script into its own file
- Loading branch information
1 parent
19dcff3
commit 01b0c0c
Showing
2 changed files
with
24 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
set -e | ||
sudo apt-get update && sudo apt-get install -y --no-install-recommends \ | ||
g++ \ | ||
unixodbc-dev \ | ||
libsasl2-modules-gssapi-mit \ | ||
unzip | ||
|
||
sudo apt-get install -y curl | ||
rm -rf /tmp && mkdir /tmp | ||
|
||
curl -OL "https://databricks.com/wp-content/uploads/drivers-2020/SimbaSparkODBC-2.6.16.1019-Debian-64bit.zip" | ||
|
||
unzip SimbaSparkODBC-2.6.16.1019-Debian-64bit.zip -d /tmp/ | ||
sudo dpkg -i /tmp/SimbaSparkODBC-*/*.deb | ||
echo "--------------------------------------------" | ||
sudo sh -c echo "[Simba]\nDriver = /opt/simba/spark/lib/64/libsparkodbc_sb64.so" >> /etc/odbcinst.ini | ||
|
||
rm -rf /tmp | ||
sudo dpkg -l | grep Simba # confirm that the driver is installed | ||
|
||
sudo ldd /opt/simba/spark/lib/64/libsparkodbc_sb64.so | ||
echo "--------------------------------------------" | ||
odbcinst -j |
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