Re: Why this code is errorfull

2017-12-13 Thread Soheil Pourbafrani
Also I should mention that the `stream` Dstream definition is: JavaInputDStream> stream = KafkaUtils.createDirectStream( ssc, LocationStrategies.PreferConsistent(), ConsumerStrategies.Subscribe(TOPIC, kafkaParams) ); On Thu,

Why this code is errorfull

2017-12-13 Thread Soheil Pourbafrani
The following code is in SparkStreaming : JavaInputDStream results = stream.map(record -> SparkTest.getTime(record.value()) + ":" + Long.toString(System.currentTimeMillis()) + ":" + Arrays.deepToString(SparkTest.finall(record.value())) + ":" +