摘要:
对应出异常的代码是:val offsetRanges: Array[OffsetRange] = rdd.asInstanceOf[HasOffsetRanges].offsetRanges 做foreachRDD的DStream必须是直接从KafkaUtils.createDirectStream 阅读全文
摘要:
pom首位添加: <dependency> <groupId>com.yammer.metrics</groupId> <artifactId>metrics-core</artifactId> <version>2.2.0</version></dependency> 阅读全文