Hello,
We’ve been using externalized connections for db access, and we were able to apply params in there via config files, so we don’t have to hardcode the actual db connection values.
We want to go a step further, and take those params from env variables, instead of from the XML config files, our connection file looks like this:
#Tue Sep 04 10:45:38 PDT 2018
user=${RDS_DB_USER}
jdbcSpecific=MYSQL
password=${RDS_DB_PASSWORD}
name=RDS_from_env_variables
passwordEncrypted=false
threadSafeConnection=true
database=MYSQL
dbURL=jdbc\:mysql\://${RDS_DB_HOST}\:3306/${RDS_DB_DATABASE}
when we run graphs with it, we get the following error:
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Unknown host: ${RDS_DB_HOST}
according to your documentation, environmental variables can be read the same way other config parameters are:
http://doc.cloveretl.com/documentation/ … ables.html
and yet, it looks like the connection is failing to translate “${RDS_DB_HOST}” to the actual host we confirmed existed in the env variable…
why would this work for configs coming from the XML param files, but not from env variables?
if dynamic params in the config file won’t work, is there a better way to establish the connection off env variables?