-
Notifications
You must be signed in to change notification settings - Fork 3k
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
configure prestosql catalog and config.properties files dynamically #4345
Comments
The server will print the actual config values (after replacement) on startup. What is shown here? |
thanks for your answer, and I tried but the server is not replacing these variables, so, I will describe in details the configurations I did, may it will help you 1- I am using prestosql version 337 connector.name=mongodb 4- I am running presto in a docker container which I am sure that I added the needed environment variables, and I am printing these variables correctly inside the container using printenv command. so, I am asking for the correct way to write these variables in the configuration files to be able to dynamically configure the presto configurations thanks in advance |
hi guys, |
It looks like we only support replacing entire values, not within a value. It shouldn’t be hard to change this to support your use case. |
It's better to store these catalog properties in a config map and mount it into containers. |
I have a similar issue with compound values: I tracked the issue to the implementation of replaceEnvironmentVariables. |
@choiwaiyiu sure! as @pcastellazzi pointed out the necessary change would actually need to go in https://github.com/airlift/airlift (a library Presto uses extensively) |
@findepi Thank you for the clarification. |
airlift/airlift#872 is merged -- thanks @choiwaiyiu ! |
@findepi This is actually my first contribution to open-source projects. Thank you for your guidance and advice! |
i am trying to use prestosql environment variables to pass some variables to configure the catalogs and even the presto worker or coordinator dynamically, i saw the following links and tried, but didn't find a correct way to implement like
https://prestosql.io/docs/current/security/secrets.html
but i didn't be able to configure them although printenv command has the variables configured correctly,
so, i appreciate any help or link that may help in this
The text was updated successfully, but these errors were encountered: