This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fun.stuff; | |
import java.time.Duration; | |
import java.util.AbstractList; | |
import java.util.Collections; | |
import java.util.Properties; | |
import java.util.RandomAccess; | |
import java.util.concurrent.ThreadLocalRandom; | |
import org.apache.kafka.clients.CommonClientConfigs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fun.stuff; | |
import java.time.Duration; | |
import java.util.Collections; | |
import java.util.Properties; | |
import java.util.concurrent.ThreadLocalRandom; | |
import org.apache.kafka.clients.CommonClientConfigs; | |
import org.apache.kafka.clients.consumer.Consumer; | |
import org.apache.kafka.clients.consumer.ConsumerConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static_resources: | |
listeners: | |
- address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 19092 | |
filter_chains: | |
- filters: | |
# Just metrics. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example; | |
import java.time.Duration; | |
import java.util.Arrays; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import java.util.Properties; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
broker.id=2 | |
listeners=CLIENT://127.0.0.1:9093,REPLICATION://127.0.0.1:9193 | |
listener.security.protocol.map=CLIENT:PLAINTEXT,REPLICATION:PLAINTEXT | |
advertised.listeners=CLIENT://127.0.0.1:19093,REPLICATION://127.0.0.1:9193 | |
inter.broker.listener.name=REPLICATION | |
log.dirs=/home/adam.kotwasinski/broker2 | |
zookeeper.connect=localhost:42181 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
broker.id=1 | |
listeners=CLIENT://127.0.0.1:9092,REPLICATION://127.0.0.1:9192 | |
listener.security.protocol.map=CLIENT:PLAINTEXT,REPLICATION:PLAINTEXT | |
advertised.listeners=CLIENT://127.0.0.1:19092,REPLICATION://127.0.0.1:9192 | |
inter.broker.listener.name=REPLICATION | |
log.dirs=/home/adam.kotwasinski/broker1 | |
zookeeper.connect=localhost:42181 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
broker.id=2 | |
listeners=PLAINTEXT://127.0.0.1:9093 | |
advertised.listeners=PLAINTEXT://127.0.0.1:19093 | |
log.dirs=/home/adam.kotwasinski/broker2 | |
zookeeper.connect=localhost:42181 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
broker.id=1 | |
listeners=PLAINTEXT://127.0.0.1:9092 | |
advertised.listeners=PLAINTEXT://127.0.0.1:19092 | |
log.dirs=/home/adam.kotwasinski/broker1 | |
zookeeper.connect=localhost:42181 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static_resources: | |
listeners: | |
- address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 19092 | |
filter_chains: | |
- filters: | |
- name: envoy.filters.network.kafka_broker | |
typed_config: |