Bhavya Krishna
05/27/2024, 4:23 PMCaused by:</h3><pre>org.apache.druid.java.util.common.IAE: No userMap is available for authenticator with prefix: [MyBasicMetadataAuthenticator]
Also, port 8281 isn't opening up,, The corrdinator overload doesn't have any errors. but the broker shows the below error
WARN [main] org.apache.druid.discovery.BaseNodeRoleWatcher - Watcher for node role [coordinator] returned an empty collection.
2024-05-27T09:32:33,021 WARN [main] org.apache.druid.java.util.common.RetryUtils - Retrying (2 of 9) in 2,675ms.
org.apache.druid.java.util.common.IOE: A leader node could not be found for [COORDINATOR] service. Check logs of service [COORDINATOR] to confirm it is healthy.
'm a bit stuck on this and would really appreciate any help or advice you can offer. Thank youStefanos Pliakos
05/28/2024, 9:51 AMBhavya Krishna
05/28/2024, 10:05 AMBhavya Krishna
05/28/2024, 10:05 AMBhavya Krishna
05/28/2024, 10:06 AMStefanos Pliakos
05/28/2024, 10:18 AMStefanos Pliakos
05/28/2024, 10:20 AMStefanos Pliakos
05/28/2024, 10:23 AMecho conf | nc IP 2181 where IP is the coordinator instance hostname/IP?Stefanos Pliakos
05/28/2024, 10:24 AMStefanos Pliakos
05/28/2024, 10:28 AMtickTime=2000
dataDir=var/zk
clientPort=2181
initLimit=5
syncLimit=2
autopurge.snapRetainCount=5
autopurge.purgeInterval=1
4lw.commands.whitelist=stat, ruok, conf, isro
server.1=host1:2888:3888
server.2=host2:2888:3888
.....
server.N=hostN:2888:3888
if you run zookeeper in N instancesStefanos Pliakos
05/28/2024, 10:29 AMStefanos Pliakos
05/28/2024, 10:29 AMBhavya Krishna
05/28/2024, 10:36 AMBhavya Krishna
05/28/2024, 4:30 PMStefanos Pliakos
05/28/2024, 5:10 PMBhavya Krishna
05/29/2024, 5:10 AMSync failed for server[<https://IP:8283/>] while [Handling response with code[500], description[Server Error]]. Failed [18] times in the last [732] seconds.. Try restarting the Druid process on server[<https://IP:8283/>].: {exceptionType=org.apache.druid.java.util.common.ISE, exceptionMessage=Received sync response [500], class=org.apache.druid.server.coordination.ChangeRequestHttpSyncer} (org.apache.druid.java.util.common.ISE: Received sync response [500])Bhavya Krishna
05/29/2024, 5:11 AMsudo ss -tuln
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
udp UNCONN 0 0 0.0.0.0:68 0.0.0.0:*
udp UNCONN 0 0 0.0.0.0:111 0.0.0.0:*
udp UNCONN 0 0 127.0.0.1:323 0.0.0.0:*
udp UNCONN 0 0 [::]:111 [::]:*
udp UNCONN 0 0 [::1]:323 [::]:*
tcp LISTEN 0 4096 0.0.0.0:111 0.0.0.0:*
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
tcp LISTEN 0 4096 *:9088 *:*
tcp LISTEN 0 4096 *:8282 *:*
tcp LISTEN 0 4096 *:8283 *:*
tcp LISTEN 0 4096 *:8291 *:*
tcp LISTEN 0 4096 [::]:111 [::]:*
tcp LISTEN 0 128 [::]:22 [::]:*
tcp LISTEN 0 50 *:8080 *:*
tcp LISTEN 0 50 *:2181 *:*Bhavya Krishna
05/29/2024, 5:12 AM#
# Server
#
tickTime=2000
dataDir=var/zk
clientPort=2181
initLimit=5
syncLimit=2
#
# Autopurge
#
autopurge.snapRetainCount=5
autopurge.purgeInterval=1
server.1=IP:2888:3888Stefanos Pliakos
05/29/2024, 8:13 AMIP set?Bhavya Krishna
05/29/2024, 9:31 AMStefanos Pliakos
05/29/2024, 9:31 AMBhavya Krishna
05/29/2024, 9:32 AMBhavya Krishna
05/29/2024, 9:35 AMBhavya Krishna
05/29/2024, 9:50 AMStefanos Pliakos
05/29/2024, 10:03 AMdruid.tlsPort=8083 (or the port that the service should be configured. Same with all the rest. For example for coordinator runtime.properties: druid.tlsPort=8081Stefanos Pliakos
05/29/2024, 10:06 AMStefanos Pliakos
05/29/2024, 11:37 AMdruid.client.https.trustStorePath=/opt/apache-druid/conf/druid/${startup_conf}/_common/truststore.jks
druid.client.https.trustStorePassword=${ksp}
druid.client.https.trustStoreType=jks
druid.client.https.protocol=TLSv1.2
druid.server.https.keyStorePath=/opt/apache-druid/conf/druid/${startup_conf}/_common/keystore.jks
druid.server.https.keyStorePassword=${ksp}
druid.server.https.keyStoreType=jks
druid.enablePlaintextPort=false
druid.enableTlsPort=true
and the process to create keystore and trustore:
### Setup keystore for druid using self-signed cert for SSL/TLS setup ###
keytool -genkeypair -keyalg RSA -keysize 2048 -dname "CN=*.${dns_internal_zone}, OU=infra, O=example, C=ES" -ext SAN=dns:localhost,ip:$LOCALIP -alias example -keystore /opt/apache-druid/conf/druid/${startup_conf}/_common/keystore.jks -keypass ${ksp} -storepass ${ksp} -validity 365
keytool -certreq -keystore /opt/apache-druid/conf/druid/${startup_conf}/_common/keystore.jks -alias example -dname "CN=*.${dns_internal_zone}, OU=infra, O=example, C=ES" -ext SAN=dns:localhost,ip:$LOCALIP -file /tmp/example.csr -storepass ${ksp}
openssl x509 -req -CA /tmp/ca.pem -CAkey /tmp/ca.key -CAcreateserial -in /tmp/example.csr -out /tmp/example.pem -days 3650
keytool -importcert -keystore /opt/apache-druid/conf/druid/${startup_conf}/_common/keystore.jks -alias rootca -file /tmp/ca.pem -noprompt -keypass ${ksp} -storepass ${ksp}
keytool -importcert -keystore /opt/apache-druid/conf/druid/${startup_conf}/_common/keystore.jks -alias dino -file /tmp/example.pem -noprompt -keypass ${ksp} -storepass ${ksp}
### Setup trustore for druid for client connections ###
keytool -import -noprompt -trustcacerts -keystore /opt/apache-druid/conf/druid/${startup_conf}/_common/truststore.jks -storepass ${ksp} -file /tmp/ca.pem -alias examplerootca
keytool -import -noprompt -trustcacerts -keystore /opt/apache-druid/conf/druid/${startup_conf}/_common/truststore.jks -storepass ${ksp} -file /tmp/example.pem -alias examplecert
### Setup system-wide CA keystore for java ###
keytool -importcert -keystore /etc/ssl/certs/java/cacerts -alias examplerootCa -file /tmp/ca.pem -noprompt -storepass changeit
openssl x509 -in /tmp/ca.pem -out /tmp/ca.crt
cp /tmp/ca.crt /usr/local/share/ca-certificates/exampleca.crt && update-ca-certificates
### Cleanup
rm -f /tmp/example.pem /tmp/example.csr /tmp/ca.pem /tmp/ca.key /tmp/ca.crtStefanos Pliakos
05/29/2024, 11:37 AMBhavya Krishna
05/30/2024, 7:29 AMcat runtime.properties
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# <http://www.apache.org/licenses/LICENSE-2.0>
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
druid.service=druid/coordinator
druid.plaintextPort=8081
druid.coordinator.startDelay=PT10S
druid.coordinator.period=PT5S
druid.manager.segments.pollDuration=PT5S
# Run the overlord service in the coordinator process
druid.coordinator.asOverlord.enabled=true
druid.coordinator.asOverlord.overlordService=druid/overlord
druid.indexer.queue.startDelay=PT5S
druid.indexer.storage.type=metadataStefanos Pliakos
05/30/2024, 8:12 AMdruid.plaintextPort from all config files and replace these with druid.tlsPort