Hi Guys, How could I doing in Java the code scala below?
val KafkaDStreams = (1 to numStreams) map {_ => KafkaUtils.createStream[String, String, StringDecoder, StringDecoder](ssc, kafkaParams, topicMap,storageLevel = StorageLevel.MEMORY_ONLY).map(_._2) } val unifiedStream = ssc.union(KafkaDStreams) val sparkProcessingParallelism = 1 unifiedStream.repartition(sparkProcessingParallelism) Thanks Guys -- Informativa sulla Privacy: http://www.unibs.it/node/8155