-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Don't exclude Apache HTTP Components JAR, bump Connect API and AWS SDK versions, add docker-compose file and instructures for demo * Fix typo Co-authored-by: Weyant <[email protected]>
- Loading branch information
1 parent
bbb3a1e
commit e3140e5
Showing
4 changed files
with
122 additions
and
47 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
log4j.rootLogger=INFO, stdout | ||
|
||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c)%n | ||
|
||
# default log levels | ||
log4j.logger.org.reflections=ERROR | ||
log4j.logger.org.apache.zookeeper=ERROR | ||
log4j.logger.org.I0Itec.zkclient=ERROR | ||
|
||
log4j.logger.com.amazonaws=WARN | ||
#log4j.logger.com.amazonaws.request=DEBUG | ||
#log4j.logger.org.apache.http.wire=DEBUG |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
version: "3" | ||
|
||
services: | ||
zookeeper: | ||
image: confluentinc/cp-zookeeper:5.5.2 | ||
environment: | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
ports: | ||
- 2181:2181 | ||
logging: { driver: none } | ||
|
||
broker: | ||
image: confluentinc/cp-kafka:6.0.1 | ||
ports: | ||
- 9092:9092 | ||
environment: | ||
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 | ||
- KAFKA_LISTENERS=PUBLIC://0.0.0.0:9092,INTERNAL://0.0.0.0:19092 | ||
- KAFKA_ADVERTISED_LISTENERS=PUBLIC://localhost:9092,INTERNAL://broker:19092 | ||
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PUBLIC:PLAINTEXT,INTERNAL:PLAINTEXT | ||
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL | ||
- KAFKA_NUM_PARTITIONS=2 | ||
- KAFKA_DEFAULT_REPLICATION_FACTOR=1 | ||
- KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS=10 | ||
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 | ||
- KAFKA_DELETE_TOPIC_ENABLE=true | ||
- KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE=false | ||
|
||
- KAFKA_LOG4J_ROOT_LOGLEVEL=INFO | ||
depends_on: [zookeeper] | ||
logging: { driver: none } | ||
|
||
schema-registry: | ||
image: confluentinc/cp-schema-registry:6.0.1 | ||
hostname: schema-registry | ||
ports: | ||
- 8080:8080 | ||
environment: | ||
- SCHEMA_REGISTRY_HOST_NAME=schema-registry | ||
- SCHEMA_REGISTRY_LISTENERS=http://0.0.0.0:8080 | ||
|
||
- SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS=PLAINTEXT://broker:19092 | ||
- SCHEMA_REGISTRY_KAFKASTORE_TOPIC=_schemas | ||
- SCHEMA_REGISTRY_KAFKASTORE_TOPIC_REPLICATION_FACTOR=1 | ||
- SCHEMA_REGISTRY_KAFKASTORE_TIMEOUT_MS=15000 | ||
depends_on: [broker] | ||
logging: { driver: none } | ||
|
||
# NB: run connect locally in stand-alone mode to debug | ||
connect: | ||
image: confluentinc/cp-kafka-connect:6.0.1 | ||
ports: | ||
- 8083:8083 | ||
environment: | ||
- CONNECT_BOOTSTRAP_SERVERS=broker:19092 | ||
- CONNECT_REST_ADVERTISED_HOST_NAME=connect | ||
- CONNECT_GROUP_ID=connect | ||
- CONNECT_CONFIG_STORAGE_TOPIC=_connect_configs | ||
- CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR=1 | ||
- CONNECT_OFFSET_STORAGE_TOPIC=_connect_offsets | ||
- CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR=1 | ||
- CONNECT_STATUS_STORAGE_TOPIC=_connect_status | ||
- CONNECT_STATUS_STORAGE_REPLICATION_FACTOR=1 | ||
- CONNECT_KEY_CONVERTER=org.apache.kafka.connect.json.JsonConverter | ||
- CONNECT_VALUE_CONVERTER=org.apache.kafka.connect.json.JsonConverter | ||
- CONNECT_INTERNAL_KEY_CONVERTER=org.apache.kafka.connect.json.JsonConverter | ||
- CONNECT_INTERNAL_VALUE_CONVERTER=org.apache.kafka.connect.json.JsonConverter | ||
|
||
- CONNECT_PLUGIN_PATH=/opt/connectors | ||
- KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:/etc/log4j.properties | ||
|
||
- AWS_PROFILE | ||
- AWS_REGION | ||
- AWS_ACCESS_KEY_ID | ||
- AWS_SECRET_ACCESS_KEY | ||
volumes: | ||
- ~/.aws:/root/.aws | ||
- ./target/plugin:/opt/connectors | ||
- ./config/log4j.properties:/etc/log4j.properties | ||
depends_on: [broker] |
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