An ingest pattern that we commonly see being adopted at Cloudera customers is Apache Spark Streaming applications which read data from Kafka. Streaming data continuously from Kafka has many benefits such as having the capability to gather insights fa
根据时间戳获取kafka的topic的偏移量,结果获取的偏移量量数据组的长度为0,就会出现如下的数组下标越界的异常,实现的原理是使用了kafka的getOffsetsBefore()方法: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException : 0 at co.gridport.kafka.hadoop.KafkaInputFetcher.getOffset(KafkaInputFetcher.java