How to do map and reduce in SparkR
Asked Answered
I

1

6

How do I do map and reduce operations using SparkR? All I can find is stuff about SQL queries. Is there a way to do map and reduce using SQL?

Infielder answered 23/6, 2015 at 20:22 Comment(1)
Not sure what you mean by doing "map and reduce using SQL," but this this tutorial should help you get a sense of how to write map/reduce in SparkR: blog.rstudio.org/2015/05/28/sparkr-preview-by-vincent-warmerdamMitchiner
A
3

See Writing R data frames returned from SparkR:::map for an example (the question itself). In short, the blog post referred to by sph21 is out of date. As of the current date, both map and reduce have been hidden in SparkR as private methods - there are open tickets to resolve that issue.

Affectionate answered 19/1, 2016 at 14:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.