Skip to content

rhadoop giving null key value output #184

@Surender1984

Description

@Surender1984

I have integrated R with Hadoop using RHadoop and running belwo program from R.

library(rmr2)
library(rhdfs)
hdfs.init()
ints = to.dfs(1:100)
calc = mapreduce(input = ints, map = function(k, v) cbind(v, 2*v))
from.dfs(calc)

Map reduce job runs successfully but it's giving null output as below.

$key
NULL

$val
NULL

However it I use the option rmr.options(backend="local") then it's giving proper output.

It will be a great help if you can please help me on this and provide the solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions