| # |
| # 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.elasticsearchrest.CamelElasticsearchrestSinkConnector |
| 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.elasticsearch.sink.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 |
| |