transform your way :) MyDStream.transform(RDD => RDD.map(wordChanger)) Mayur Rustagi Ph: +1 (760) 203 3257 http://www.sigmoidanalytics.com @mayur_rustagi <https://twitter.com/mayur_rustagi>
On Wed, Aug 20, 2014 at 1:25 PM, cuongpham92 <cuongpha...@gmail.com> wrote: > Hi, > I am a newbie to Spark Streaming, and I am quite confused about JavaDStream > in SparkStreaming. In my situation, after catching a message "Hello world" > from Kafka in JavaDStream, I want to access to JavaDStream and change this > message to "Hello John", but I could not figure how to do it. > Any idea about this? > Thanks, > Cuong > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Accessing-to-elements-in-JavaDStream-tp12459.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > >