RevolutionAnalytics / rmr2

A package that allows R developer to use Hadoop MapReduce
160 stars 149 forks source link

output NULL of key and val #187

Open nguyenvanlinh1808 opened 6 years ago

nguyenvanlinh1808 commented 6 years ago

hi everybody, I succeeded run Hadoop jar, yarn jar $YARN_EXAMPLES/hadoop-mapreduce-examples-3.1.0.jar pi 2 4 It gives the results. That means the mapreduce job is successful.

However, when I run it in R from.dfs(mapreduce(input = to.dfs(1:10), map = function(k,v) keyval(v, v^2))) It always returns NULL of key and val. The other wordcount mapreduce also brings me a NULL value of val and key.

Please help me to find out a solution for such issue. Thank you very much!