I have two Key Value Pairs of the type org.apache.spark.streaming.dstream.DStream[Int].
First Key value pair is (word,frequency). Second key value pair is (Number of rows,Value).
I would like to divide frequency by value in for each word. But, I am getting below error value / is not a member of org.apache.spark.streaming.dstream.DStream[Int]
Sample Code :
f is frequency of the word and c is the total count rdd has word and frequency
val cp = rdd.foreachRDD {
x => (x, f/c)
}