-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade trino to 436 and docker image to v4
- Loading branch information
1 parent
5787d58
commit c42909a
Showing
6 changed files
with
45 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.env | ||
env |
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 |
---|---|---|
@@ -1,11 +1,24 @@ | ||
#!/bin/bash | ||
|
||
RANGER_VERSION=2.1.0 | ||
RANGER_VERSION=3.0.0-SNAPSHOT | ||
|
||
TAR_FILE=ranger-${RANGER_VERSION}-admin.tar.gz | ||
DOWNLOAD_URL=https://github.com/aakashnand/trino-ranger-demo/releases/download/trino-ranger-demo-v1.0/${TAR_FILE} | ||
|
||
# Check if the tar file exists | ||
if [ -f "$TAR_FILE" ]; then | ||
echo "Tar file $TAR_FILE already exists." | ||
else | ||
echo "Tar file $TAR_FILE does not exist. Downloading from $DOWNLOAD_URL..." | ||
wget $DOWNLOAD_URL -O $TAR_FILE | ||
echo "Download completed." | ||
fi | ||
|
||
#wget https://github.com/aakashnand/trino-ranger-demo/releases/download/trino-ranger-demo-v1.0/ranger-${RANGER_VERSION}-admin.tar.gz && \ | ||
tar xvf ranger-${RANGER_VERSION}-admin.tar.gz && \ | ||
cd /root/ranger-${RANGER_VERSION}-admin/ && \ | ||
cp /root/install.properties /root/ranger-${RANGER_VERSION}-admin/ && \ | ||
cp /root/ranger-admin/install.properties /root/ranger-${RANGER_VERSION}-admin/ && \ | ||
./setup.sh && \ | ||
ranger-admin start && \ | ||
python -m venv /root/ranger-admin/.env && source /root/ranger-admin/.env/bin/activate && pip install -r /root/ranger-admin/requirement.txt | ||
python /root/ranger-admin/trino_service_setup.py && \ | ||
tail -f /root/ranger-${RANGER_VERSION}-admin/ews/logs/ranger-admin-*-.log |
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