Closed RajkumarB closed 10 years ago
I got exactly the same problem and output. I'm running a 64bit MapR distribution with the following config:
java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
$version.string
[1] "R version 3.1.1 (2014-07-10)"
Any help would be great!
ThiDiff.
Hi ThiDiff,
Problem solved. Just pass one more argument "output.format" for "mapreduce" function as
mapreduce (input = small.ints, output.format="text",map = function (k, v) cbind (v, v ^ 2)).
Hi RajkumarB,
Thank you, it resolves my problem!
I have just another question about the from.dfs(...)
function. When I try to do
from.dfs(mapreduce(input=to.dfs(1:10), output.format='text', map=function(k,v) cbind(v,v^2)))
I get the following error :
Error in if (file.exists(cmd)) return(cmd) : argument is of length zero
I don't really understand why. This also happends when I type a simple from.dfs(to.dfs(1:10))
.
Have you any idea?
Thank you in advance!
After installing Rhadoop using rmr2, rhdfs as suggested, I ran small example as follows.
It ran nicely. When I checked in the output folder, it contains files as...
Which one is exact output file and how to convert this output into readable format?
Thanks in advance, Rajkumar.