You can compute the average using this code:
avg = myrdd.reduce(myAvg);
I hope this helps.
There are two popular ways using which ...READ MORE
Save it to a text file:
Print contains ...READ MORE
You can follow this below solution for ...READ MORE
It seems you didn't set Hadoop for ...READ MORE
Instead of spliting on '\n'. You should ...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
You can create one directory in HDFS ...READ MORE
You can try this code to get ...READ MORE
There are few methods provided by the ...READ MORE
Already have an account? Sign in.