Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set default connector jar path #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ All notable changes to this project will be documented in this file.

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).

## [5.1.0] - 2024-06-2x

## [5.1.1] - 2024-06-21
### Fixed
- Set default `AUX_CLASSPATH` based on `MYSQL_TYPE`.
- When `mysql`, then set to `/usr/share/java/mysql-connector-java.jar`.
- When `mariadb` then set to `/usr/share/java/mariadb-connector-java.jar`.
- Else set to `MYSQL_DRIVER_JAR`.

## [5.1.0] - 2024-06-21
### Added
- Added `datanucleus.connectionPoolingType` to hive-site.xml, defaults: `BoneCP`
- Added `DATANUCLEUS_CONNECTION_POOLING_TYPE` to support changing the database connection pooling. Valid options are `BoneCP`, `DBCP`, `DBCP2`, `C3P0`, `HikariCP`.
Expand Down
13 changes: 12 additions & 1 deletion files/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,18 @@ sed "s/METASTORE_PRELISTENERS/${METASTORE_PRELISTENERS}/" -i /etc/hive/conf/hive
#required to debug ranger plugin, todo: send apache common logs to cloudwatch
#export HADOOP_OPTS="$HADOOP_OPTS -Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog"

export AUX_CLASSPATH="${MYSQL_DRIVER_JAR:-/usr/share/java/mysql-connector-java.jar}"
# Set AUX_CLASSPATH to mysql-connector-java.jar or mariadb-connector-java.jar as default.
case ${MYSQL_TYPE:-mysql} in
mysql)
export AUX_CLASSPATH=/usr/share/java/mysql-connector-java.jar
;;
mariadb)
export AUX_CLASSPATH=/usr/share/java/mariadb-connector-java.jar
;;
*)
export AUX_CLASSPATH=$MYSQL_DRIVER_JAR
esac

[[ ! -z $SNS_ARN ]] && export AUX_CLASSPATH="$AUX_CLASSPATH:/usr/lib/apiary/apiary-metastore-listener-${APIARY_EXTENSIONS_VERSION}-all.jar"
[[ ! -z $KAFKA_BOOTSTRAP_SERVERS ]] && export AUX_CLASSPATH="$AUX_CLASSPATH:/usr/lib/apiary/kafka-metastore-listener-${APIARY_EXTENSIONS_VERSION}-all.jar:/usr/lib/apiary/kafka-clients-${KAFKA_VERSION}.jar"
[[ ! -z $ENABLE_GLUESYNC ]] && export AUX_CLASSPATH="$AUX_CLASSPATH:/usr/lib/apiary/apiary-gluesync-listener-${APIARY_GLUESYNC_LISTENER_VERSION}-all.jar"
Expand Down
Loading