Skip to content

Commit

Permalink
fixup! [import] allow configuring Kafka tables for use of SASL authen…
Browse files Browse the repository at this point in the history
…tication
  • Loading branch information
NicoK committed Sep 24, 2021
1 parent 7bcd1d8 commit 5209f85
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ public static void main(String[] args) {
+ kafkaServer
+ "',\n"
+ (kafkaSecurityProtocol != null
? "'properties.security.protocol' = '" + kafkaSecurityProtocol + "'"
? "'properties.security.protocol' = '" + kafkaSecurityProtocol + "',\n"
: "")
+ (kafkaSaslMechanism != null
? "''properties.sasl.mechanism' = '" + kafkaSaslMechanism + "'"
? "''properties.sasl.mechanism' = '" + kafkaSaslMechanism + "',\n"
: "")
+ (kafkaSaslJaasConfig != null
? "''properties.sasl.jaas.config' = '" + kafkaSaslJaasConfig + "'"
? "''properties.sasl.jaas.config' = '" + kafkaSaslJaasConfig + "',\n"
: "")
+ "'properties.max.request.size' = '"
+ 5 * 1024 * 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ public static void main(String[] args) {
+ kafkaServer
+ "',\n"
+ (kafkaSecurityProtocol != null
? "'properties.security.protocol' = '" + kafkaSecurityProtocol + "'"
? "'properties.security.protocol' = '" + kafkaSecurityProtocol + "',\n"
: "")
+ (kafkaSaslMechanism != null
? "''properties.sasl.mechanism' = '" + kafkaSaslMechanism + "'"
? "''properties.sasl.mechanism' = '" + kafkaSaslMechanism + "',\n"
: "")
+ (kafkaSaslJaasConfig != null
? "''properties.sasl.jaas.config' = '" + kafkaSaslJaasConfig + "'"
? "''properties.sasl.jaas.config' = '" + kafkaSaslJaasConfig + "',\n"
: "")
+ "'properties.max.request.size' = '"
+ 20 * 1024 * 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ public static void main(String[] args) {
+ kafkaServer
+ "',\n"
+ (kafkaSecurityProtocol != null
? "'properties.security.protocol' = '" + kafkaSecurityProtocol + "'"
? "'properties.security.protocol' = '" + kafkaSecurityProtocol + "',\n"
: "")
+ (kafkaSaslMechanism != null
? "''properties.sasl.mechanism' = '" + kafkaSaslMechanism + "'"
? "''properties.sasl.mechanism' = '" + kafkaSaslMechanism + "',\n"
: "")
+ (kafkaSaslJaasConfig != null
? "''properties.sasl.jaas.config' = '" + kafkaSaslJaasConfig + "'"
? "''properties.sasl.jaas.config' = '" + kafkaSaslJaasConfig + "',\n"
: "")
+ "'format' = 'json'\n"
+ ")");
Expand Down

0 comments on commit 5209f85

Please sign in to comment.