You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/12/13 11:40:30 UTC
[camel-kafka-connector] 01/03: Added a camel-cassandraql sink
example
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch cassandraql-sink
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git
commit 6528090d7a06f15a446fd3e20770f53ed8dbbd21
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 13 12:30:05 2019 +0100
Added a camel-cassandraql sink example
---
examples/CamelCassandraQLSinkConnector.properties | 27 +++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/examples/CamelCassandraQLSinkConnector.properties b/examples/CamelCassandraQLSinkConnector.properties
new file mode 100644
index 0000000..7f03186
--- /dev/null
+++ b/examples/CamelCassandraQLSinkConnector.properties
@@ -0,0 +1,27 @@
+#
+# 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=CamelCassandraQLSinkConnector
+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
+
+camel.sink.url=cql://172.17.0.2/test?cql=insert into users(id, name) values (now(), ?)
+
+