You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2019/08/03 08:30:55 UTC

[incubator-pinot] branch kafka2.0_doc updated (9dabfd9 -> 48c27aa)

This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a change to branch kafka2.0_doc
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


 discard 9dabfd9  Adding kafka 2.0 doc for using simple consumer
     new 48c27aa  Adding kafka 2.0 doc for using simple consumer

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (9dabfd9)
            \
             N -- N -- N   refs/heads/kafka2.0_doc (48c27aa)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/pluggable_streams.rst | 1 -
 1 file changed, 1 deletion(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[incubator-pinot] 01/01: Adding kafka 2.0 doc for using simple consumer

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch kafka2.0_doc
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 48c27aa6990aee37ab290cfabd0a4ebdd6f9d33a
Author: Xiang Fu <fx...@gmail.com>
AuthorDate: Sat Aug 3 16:22:18 2019 +0800

    Adding kafka 2.0 doc for using simple consumer
---
 docs/pluggable_streams.rst | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/docs/pluggable_streams.rst b/docs/pluggable_streams.rst
index ff27cde..f61ed86 100644
--- a/docs/pluggable_streams.rst
+++ b/docs/pluggable_streams.rst
@@ -177,6 +177,45 @@ Below is a sample `streamConfigs` used to create a realtime table with Kafka Str
     "stream.kafka.hlc.bootstrap.server": "localhost:19092"
   }
 
+Below is a sample table config used to create a realtime table with Kafka Partition(Low) level consumer:
+
+.. code-block:: none
+
+  {
+    "tableName": "meetupRsvp",
+    "tableType": "REALTIME",
+    "segmentsConfig": {
+      "timeColumnName": "mtime",
+      "timeType": "MILLISECONDS",
+      "segmentPushType": "APPEND",
+      "segmentAssignmentStrategy": "BalanceNumSegmentAssignmentStrategy",
+      "schemaName": "meetupRsvp",
+      "replication": "1",
+      "replicasPerPartition": "1"
+    },
+    "tenants": {},
+    "tableIndexConfig": {
+      "loadMode": "MMAP",
+      "streamConfigs": {
+        "streamType": "kafka",
+        "stream.kafka.consumer.type": "simple",
+        "stream.kafka.topic.name": "meetupRSVPEvents",
+        "stream.kafka.decoder.class.name": "org.apache.pinot.core.realtime.impl.kafka.KafkaJSONMessageDecoder",
+        "stream.kafka.consumer.factory.class.name": "org.apache.pinot.core.realtime.impl.kafka2.KafkaConsumerFactory",
+        "stream.kafka.zk.broker.url": "localhost:2191/kafka",
+        "stream.kafka.broker.list": "localhost:19092"
+      }
+    },
+    "metadata": {
+      "customConfigs": {}
+    }
+  }
+
+Please note that,
+1. `replicasPerPartition` under `segmentsConfig` config is required to specify table replication.
+2. `stream.kafka.consumer.type` should be specified as `simple` to use partition level consumer.
+3. `stream.kafka.zk.broker.url` and `stream.kafka.broker.list` are required under `tableIndexConfig.streamConfigs` to provide kafka related information.
+
 Upgrade from Kafka 0.9 connector to Kafka 2.x connector
 -------------------------------------------------------
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org