36184/reducebykey-avereage
You can try the code mentioned below to do this:
val f = List(("panda",1),("pink",2),("panda",2),("pink",3)) rdd.mapValues(value=>(value,1)) rdd.collect
Instead of spliting on '\n'. You should ...READ MORE
The official definition of Apache Hadoop given ...READ MORE
Firstly you need to understand the concept ...READ MORE
org.apache.hadoop.mapred is the Old API org.apache.hadoop.mapreduce is the ...READ MORE
Yes, they both merge the values using ...READ MORE
ReduceByKey is the best for production. READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.