This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git
The following commit(s) were added to refs/heads/master by this push: new 1223aed Adds an example configuration for ElasticSearch Index new 2e5463a Merge pull request #41 from orpiske/add-elasticsearch-example 1223aed is described below commit 1223aed2c8ffebf8df2155a4dd5cff44d188ab2b Author: Otavio Rodolfo Piske <opi...@redhat.com> AuthorDate: Wed Dec 11 17:45:01 2019 +0100 Adds an example configuration for ElasticSearch Index --- .../CamelElasticSearchSinkConnector.properties | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/examples/CamelElasticSearchSinkConnector.properties b/examples/CamelElasticSearchSinkConnector.properties new file mode 100644 index 0000000..a6679ee --- /dev/null +++ b/examples/CamelElasticSearchSinkConnector.properties @@ -0,0 +1,39 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +name=CamelElasticSearchSinkConnector +topics=mytopic +tasks.max=1 +connector.class=org.apache.camel.kafkaconnector.CamelSinkConnector +key.converter=org.apache.kafka.connect.storage.StringConverter +value.converter=org.apache.kafka.connect.storage.StringConverter + +# For the index operation, it might be necessary to provide or implement +# a transformer. A sample configuration would be similar to the commented +# code below: +# transforms=ElasticSearchTransformer + +# This is the sample Transformer used in the integration test code that transforms +# Kafka's ConnectRecord to a Map. +# transforms.ElasticSearchTransformer.type=org.apache.camel.kafkaconnector.sink.elasticsearch.transforms.ConnectRecordValueToMapTransformer + +# This is a configuration for the sample transformer that defines the +# key used in the map. +# transforms.ElasticSearchTransformer.key=MyKey + +camel.sink.url=elasticsearch-rest://myClusterName?hostAddresses=hostname:port&operation=Index&indexName=sampleIndexName +