```#!/bin/bash RUNDRUID=$(find /opt/grove -name r...
# troubleshooting
s
Copy code
#!/bin/bash

RUNDRUID=$(find /opt/grove -name run-druid | grep -v dist | head -n 1)
if [ -z "$RUNDRUID" ]; then
  echo "run-druid script not found."
  exit 1
fi


sed -i "/^exec.*/i export KAFKA_JAAS_CONFIG=\"org.apache.kafka.common.security.plain.PlainLoginModule required username='${USERNAME}' password='${PASSWORD}';\"" "$RUNDRUID"