Kafka “Login module not specified in JAAS config”

There are 2 ways to provide the JAAS configuration to the Kafka clients. Via the client property: sasl.jaas.config. In that case you set it to the actual JAAS configuration entry. For example, your configuration file becomes: bootstrap.servers=(address) zookeeper.connect=127.0.0.1:2181 zookeeper.connection.timeout.ms=6000 sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username=”(username)” password=”(password)”; security.protocol=SASL_PLAINTEXT sasl.mechanism=PLAIN group.id=(group) As you’ve already figured out, you can use –command-config … Read more

Docker compose create kafka topics

The simplest way is to start a separate container inside the docker-compose file (called init-kafka in the example below) to launch the various kafka-topics –create … commands, while first making it wait for Kafka to be reachble by simply running kafka-topics –list …. Like this: version: ‘2.1’ services: zookeeper: image: confluentinc/cp-zookeeper:6.1.1 ports: – “2181:2181” environment: … Read more

Monitoring UI for Apache kafka – kafka manager vs kafka monitor [closed]

Lenses Lenses (ex Landoop) enhances Kafka with User Interface, streaming SQL engine and cluster monitoring. It enables faster monitoring of Kafka data pipelines. They provide a free all-in-one docker (Lenses Box) which can serve a single broker for up to 25M messages. Note that this is recommended for development environments. Cloudera SMM Streams Messaging Manager … Read more

How to shift back the offset of a topic within a stable Kafka consumer group?

The reset-offsets option for kafka-consumer-groups.sh first checks to see if a consumer is active in that group before attempting to shift back your offsets. ‘Stable’ means you have an active consumer running. Use the describe-groups option to check on your consumer groups: bin/kafka-consumer-groups.sh –bootstrap-server $SERVERS –group $GROUP –describe If you see an entry under ‘CONSUMER-ID/HOST/CLIENT-ID’ … Read more

How to enable remote JMX on Kafka brokers (for JmxTool)?

Edit bin/kafka-run-class.sh and set KAFKA_JMX_OPTS variable KAFKA_JMX_OPTS=”-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=your.kafka.broker.hostname -Djava.net.preferIPv4Stack=true” Update bin/kafka-server-start.sh add the below line export JMX_PORT=PORT

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)