使用场景: 设置并行度参数spark.streaming.concurrentJobs >1 时候,使用spark streaming消费kafka 异常信息: There may be two or more tasks in one executor will use the same kafka consumer at the same time, then it will throw
阅读之前假设您已经对kafka有了一定的了解 详情和API请参考http://kafka.apache.org/0100/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html KafkaConsumer类简介 public class KafkaConsumer<K,V>extends Object