-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Ycallaer/feature/add_external_components_d…
…ocker Adding kafka connector to read data and push to ELK
- Loading branch information
Showing
8 changed files
with
127 additions
and
25 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
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,6 @@ | ||
FROM confluentinc/cp-kafka-connect:6.1.0 | ||
|
||
ENV CONNECT_PLUGIN_PATH="/usr/share/java,/usr/share/confluent-hub-components" | ||
|
||
RUN confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:latest | ||
RUN confluent-hub install --no-prompt confluentinc/kafka-connect-elasticsearch:latest |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,19 @@ | ||
{ | ||
"name": "etf-simple-2-elk", | ||
"config": { | ||
"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector", | ||
"tasks.max": "1", | ||
"topics": "etf_dummy_data", | ||
"connection.url": "http://es01:9200", | ||
"type.name": "_doc", | ||
"value.converter": "io.confluent.connect.protobuf.ProtobufConverter", | ||
"value.converter.schemas.enable": "false", | ||
"value.converter.schema.registry.url": "http://schema-registry:8081", | ||
"key.converter":"org.apache.kafka.connect.storage.StringConverter", | ||
"key.converter.schemas.enable" : "false", | ||
"schema.ignore": "true", | ||
"key.ignore": "true", | ||
"auto.create.indices.at.start":"true", | ||
"write.method":"insert" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -48,6 +48,5 @@ | |
} | ||
|
||
|
||
|
||
def getConfigForEnv(environment): | ||
return config[environment] | ||
return config[environment] |
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