Hi all! I am currently trying to enable authentica...
# troubleshooting
s
Hi all! I am currently trying to enable authentication in Pinot for zookeeper. I have included the two properties mentioned in the doc in the conf files, created a jaas file and passed the jaas file to the as a java option in the pinot-admin.sh file.I am getting an exception as follows :
2025/01/06 00:35:56.251 INFO [StartServiceManagerCommand] [main] Executing command: StartServiceManager -clusterName PinotCluster -zkAddress localhost:2191 -port -1 -bootstrapServices []
2025/01/06 00:35:56.252 INFO [StartServiceManagerCommand] [main] Starting a Pinot [SERVICE_MANAGER] at 0.418s since launch
2025/01/06 00:35:56.255 INFO [StartServiceManagerCommand] [main] Started Pinot [SERVICE_MANAGER] instance [ServiceManager_172.20.10.7_-1] at 0.421s since launch
2025/01/06 00:35:56.255 INFO [StartServiceManagerCommand] [main] Starting a Pinot [CONTROLLER] at 0.421s since launch
2025/01/06 00:36:58.962 ERROR [ZKHelixManager] [main] fail to createClient. retry 1
org.apache.helix.zookeeper.zkclient.exception.ZkTimeoutException: Waiting to be connected to ZK server has timed out.
at org.apache.helix.zookeeper.zkclient.ZkClient.waitForEstablishedSession(ZkClient.java:1990) ~[pinot-all-1.2.0-jar-with-dependencies.jar:1.2.0-cc33ac502a02e2fe830fe21e556234ee99351a7a]
at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:775) ~[pinot-all-1.2.0-jar-with-dependencies.jar:1.2.0-cc33ac502a02e2fe830fe21e556234ee99351a7a]
at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:817) ~[pinot-
Could someone tell me where it is breaking? @Xiang Fu @Mayank
x
zk connection is not there
if you make zk auth then you need to authenticate pinot controller/broker/server/minion for zk as well
s
yes i have authenticated controller/broker/server also .I have included the following properties
controller.admin.access.control.factory.class=org.apache.pinot.controller.api.access.ZkBasicAuthAccessControlFactory
in controller.conf and
# the factory class property is different for the broker
pinot.broker.access.control.class=org.apache.pinot.broker.broker.ZkBasicAuthAccessControlFactory
in the broker.conf after which i created a jaas.conf file jaas.conf file
Client {
org.apache.zookeeper.server.auth.DigestLoginModule required
username="admin"
password="pinot";
};
and included the following in my pinot-admin.sh file
export JVMFLAGS="-Djava.security.auth.login.config=/Users/temp/Desktop/sharonTemp/apache-pinot-1.2.0-bin/conf/jaas.conf -Dzookeeper.allowSaslFailedClients=false"
is there something else that i should include?
x
How do you start the zookeeper with jaas config ?
s
I have stored the jaas.conf file in the following directory
/Users/temp/Desktop/sharonTemp/apache-pinot-1.2.0-bin/conf/jaas.conf
and imported the following line in my pinot-admin.sh file
export JVMFLAGS="-Djava.security.auth.login.config=/Users/temp/Desktop/sharonTemp/apache-pinot-1.2.0-bin/conf/jaas.conf -Dzookeeper.allowSaslFailedClients=false"
and then restarted the controller
x
when you start zookeeper, did you configure auth for zookeeper server?
s
yes i have configured auth for zookeeper server
i have specified server and client credentials in the jaas.conf file for zookeeper also
x
you might need to change the
export JVMFLAGS
to
export JAVA_OPTS
along with all other java opts like xmx xms etc
s
yes i have tried changing it to JAVA_OPTS but i am getting the same error .