diff options
author | 2023-01-06 11:15:15 +0000 | |
---|---|---|
committer | 2023-03-09 10:00:42 +0000 | |
commit | 38f5b4b9dc667c52561867d4e36f940109f3e3a5 (patch) | |
tree | 7f3b4f9ec6a897a3e5b7cf11de72e5ad7da9adc2 /sampleClient/src/main/resources | |
parent | a6b96912d1fa3ee369577c50079b6f1d25907607 (diff) |
[KAFKA] Adding new client code
Signed-off-by: david.mcweeney <david.mcweeney@est.tech>
Change-Id: I38b930b1b5f4233f961d51bbab4b1828d034e67a
Issue-ID: DMAAP-1847
Diffstat (limited to 'sampleClient/src/main/resources')
-rw-r--r-- | sampleClient/src/main/resources/application.yaml | 11 | ||||
-rw-r--r-- | sampleClient/src/main/resources/logback.xml | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/sampleClient/src/main/resources/application.yaml b/sampleClient/src/main/resources/application.yaml new file mode 100644 index 0000000..b8a0f70 --- /dev/null +++ b/sampleClient/src/main/resources/application.yaml @@ -0,0 +1,11 @@ +kafka: + kafkaBootstrapServers: [localhost:9092] + pollingTimeout: 10 + consumerGroup: my-consumer-group + consumerID: my-consumer-id + consumerTopics: [test.mytopic.1, test.mytopic.2] + producerTopics: [test.mytopic.3] + kafkaSaslJaasConfig: ${SASL_JAAS_CONFIG:org.apache.kafka.common.security.scram.ScramLoginModule required username=admin password=admin-secret;} + + #kafkaSaslJaasConfig: ${SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=admin password=admin-secret;} + #kafkaSaslMechanism: ${SASL_MECHANISM:PLAIN}
\ No newline at end of file diff --git a/sampleClient/src/main/resources/logback.xml b/sampleClient/src/main/resources/logback.xml new file mode 100644 index 0000000..8798706 --- /dev/null +++ b/sampleClient/src/main/resources/logback.xml @@ -0,0 +1,11 @@ +<configuration> + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> + <encoder> + <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern> + </encoder> + </appender> + + <root level="INFO"> + <appender-ref ref="STDOUT"/> + </root> +</configuration>
\ No newline at end of file |