asereda-gs commented on a change in pull request #1127: [CALCITE-2913] add a
KafkaAdapter for Stream
URL: https://github.com/apache/calcite/pull/1127#discussion_r283079182
##########
File path: site/_docs/kafka_adapter.md
##########
@@ -0,0 +1,99 @@
+---
+layout: docs
+title: Kafka adapter
+permalink: /docs/kafka_adapter.html
+---
+<!--
+{% comment %}
+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.
+{% endcomment %}
+-->
+
+For instructions on downloading and building Calcite, start with
the[tutorial]({{ site.baseurl }}/docs/tutorial.html).
+
+The Kafka adapter exposes a Kafka topic as a STREAM table, so it can be query
using
+[Calcite Stream SQL]({{ site.baseurl }}/docs/stream.html). Note that the
adapter will not attempt to scan all topics,
+instead users need to configure tables one-by-one.
+
+A basic example of a model file is given below:
+
+{% highlight json %}
+{
+ "version": "1.0",
+ "defaultSchema": "KAFKA",
+ "schemas": [
+ {
+ "name": "KAFKA",
+ "tables": [
+ {
+ "name": "TABLE_NAME",
+ "type": "custom",
+ "factory": "org.apache.calcite.adapter.kafka.KafkaTableFactory",
+ "row.converter": "com.example.CustKafkaRowConverter",
+ "operand": {
+ "bootstrap.servers": "host1:port,host2:port",
+ "topic.name": "kafka.topic.name",
+ "consumer.paras": {
Review comment:
is it params (not _paras_) ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services