Question

1
Replies
1570
Views
Close popover
Srinivas santi (Srinivass2021)
HCL Technologies

HCL Technologies
NL
Srinivass2021 Member since 2015 16 posts
HCL Technologies
Posted: October 15, 2018
Last activity: November 8, 2018
Closed

Kafka Integration-No JAAS configuration file set issue_Pega7.3.0

Hi,

I have Configured JAAS file for Kafka but in pega Kafka configuration rule still getting “No JAAS configuration file set”at authentication section.

Configured Details:

Pega and Kafka are on same server

JAAS file Name: kafka_server_jaas.conf

KafkaServer {
org.apache.kafka.common.security.plain.PlainLoginModule required
username="admin"
password="admin-secret"
user_admin="admin-secret"
user_alice="alice-secret";
};
KafkaClient {
org.apache.kafka.common.security.plain.PlainLoginModule required
username="alice"
password="alice-secret";
};

Before starting kafka executing below command

export KAFKA_OPTS="-Djava.security.auth.login.config=/software/kafka_2.11-1.0.0/config/kafka_server_jaas.conf"

updated server.properties and consumer.properties

File:server.properties

listeners=SASL_PLAINTEXT://localhost:9092
security.inter.broker.protocol=SASL_PLAINTEXT
sasl.mechanism.inter.broker.protocol=PLAIN
sasl.enabled.mechanisms=PLAIN
listener.security.protocol.map=SASL_PLAINTEXT:SASL_PLAINTEXT

File consumer. Properties:

security.protocol=SASL_PLAINTEXT
sasl.mechanism=PLAIN

Please let me know if I missed any other configuration to make enable authentication section (should ask user id and password).

Please let me know the solution ASAP if anyone have idea.

Thank you.

Regards,

Srinivas

Data Integration Decision Management
Moderation Team has archived post