Description

Data source for kafka.

Parameters

Name Description Type Required? Default Value
bootstrapServers kafka集群地址 String
groupId 消费组id String
startupMode startupMode String
topic topic String null
topicPattern topic pattern String null
startTime start time String null

Script Example

  1. data = Kafka011SourceStreamOp() \
  2. .setBootstrapServers("localhost:9092") \
  3. .setTopic("iris") \
  4. .setStartupMode("EARLIEST") \
  5. .setGroupId("alink_group")
  6. data.print()
  7. StreamOperator.execute()