Skip to content

Commit 687a80f

Browse files
rpoluriRaj Poluri
and
Raj Poluri
authored
start gluesync listener without initializing glue databases (#134)
* start gluesync listener without intializing glue databases * update variable name --------- Co-authored-by: Raj Poluri <[email protected]>
1 parent 01994c7 commit 687a80f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6+
## [5.2.3] - 2025-02-25
7+
### Added
8+
- Option to start gluesync listener without intializing glue databases.
9+
610
## [5.2.2] - 2024-09-24
711
### Added
812
- Upgrade Apiary extensions to 8.0.2 (was 7.3.9). (Glue Listener fix)

files/startup.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ if [ -z $EXTERNAL_DATABASE ] && [ "$HIVE_METASTORE_ACCESS_MODE" = "readwrite" ];
190190
DB_ID=`echo "select MAX(DB_ID)+1 from DBS"|mysql $MYSQL_OPTIONS`
191191
BUCKET_NAME=$(echo "${INSTANCE_NAME}-${AWS_ACCOUNT}-${AWS_REGION}-${HIVE_DB}"|tr "_" "-")
192192
echo "insert into DBS(DB_ID,DB_LOCATION_URI,NAME,OWNER_NAME,OWNER_TYPE) values(\"$DB_ID\",\"s3://${BUCKET_NAME}/\",\"${HIVE_DB}\",\"root\",\"USER\") on duplicate key update DB_LOCATION_URI=\"s3://${BUCKET_NAME}/\";"|mysql $MYSQL_OPTIONS
193-
#create glue database
194-
if [ ! -z $ENABLE_GLUESYNC ]; then
193+
#create glue database if not created by terraform
194+
if [ -z $DISABLE_GLUE_DB_INIT ] && [ ! -z $ENABLE_GLUESYNC ]; then
195195
echo "creating glue database $HIVE_DB"
196196
aws --region=${AWS_REGION} glue create-database --database-input Name=${GLUE_PREFIX}${HIVE_DB},LocationUri=s3://${BUCKET_NAME}/ &> /dev/null
197197
aws --region=${AWS_REGION} glue update-database --name=${GLUE_PREFIX}${HIVE_DB} --database-input "Name=${GLUE_PREFIX}${HIVE_DB},LocationUri=s3://${BUCKET_NAME}/,Description=Managed by ${INSTANCE_NAME} datalake."

0 commit comments

Comments
 (0)