Stream kafka流任务分区号

Stream kafka流任务分区号,stream,apache-kafka,task,partition,Stream,Apache Kafka,Task,Partition,源主题“streams wordcount”有4个分区,当我启动kafka流作业时,为什么在控制台中显示8个任务 current active tasks: [0_0, 0_1, 1_0, 0_2, 1_1, 0_3, 1_2, 1_3] current standby tasks: [] previous active tasks: [] Apache Kafka的默认主题复制因子为1,这可能是原因。主题复制用于更高的持久性和容错性。谁决定任务的数量?一个分区对应一个任务吗?

源主题“streams wordcount”有4个分区,当我启动kafka流作业时,为什么在控制台中显示8个任务

current active tasks: [0_0, 0_1, 1_0, 0_2, 1_1, 0_3, 1_2, 1_3]
current standby tasks: []
previous active tasks: []

Apache Kafka的默认主题复制因子为1,这可能是原因。主题复制用于更高的持久性和容错性。

谁决定任务的数量?一个分区对应一个任务吗?