-
Notifications
You must be signed in to change notification settings - Fork 1.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
Environment Variables are not effective #10651
Comments
cc @xiangfu0 I can see 2 problems by reading
|
I see, to me I feel we should add |
@Jackie-Jiang @xiangfu0 Did someone work on this? Can I help? Are there any concerns in adding ENV support and |
@xiangfu0 @Jackie-Jiang I would love to get your input on this. What would be the best way to deal with this?
Do you see a fourth option? |
I think env var: @t0mpere can you add a test to ensure the configs passed along with env variables are override as expected? If the solution here is generic, then we can later on generalize the configs across all the pinot components. |
Fixed with #12307 |
Hi,
In my test environment, I am trying to run Pinot with some environmental variables set already.
I think according to this code, environment variables should work: https://github.com/apache/pinot/blob/release-0.12.1/pinot-spi/src/main/java/org/apache/pinot/spi/env/PinotConfiguration.java#L82
Following steps were followed:
export PINOT_CONTROLLER_ADMIN_ACCESS_CONTROL_PRINCIPALS=admin
export PINOT_CONTROLLER_ADMIN_ACCESS_CONTROL_PRINCIPALS_ADMIN_PASSWORD=admin123
export PINOT_CONTROLLER_ADMIN_ACCESS_CONTROL_FACTORY_CLASS="org.apache.pinot.controller.api.access.BasicAuthAccessControlFactory"
./conf/pinot-controller.conf
file contents:Start Zookeeper command:
bin/pinot-admin.sh StartZookeeper kPort 2191
Start controller command:
bin/pinot-admin.sh StartController -configFileName ./conf/pinot-controller.conf
Expected Outcome:
Controller starts successfully. And I am able to browse its UI at https://localhost:10000/ . But environment variables are also set and it should ask me username and password. But it never gives that username/password screen.
More Info:
If I use following three lines in
./conf/pinot-controller.conf
then username password screen appears fine.Leaving
controller.admin.access.control.factory.class
option withoutprincipals
options in conf file does not work. It gives exception while starting controller. (Principals are set in environment variables.)Additional Info:
Pinot version: apache-pinot-0.12.0
java version:
The text was updated successfully, but these errors were encountered: