[
https://issues.apache.org/jira/browse/SPARK-7230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14520465#comment-14520465
]
Shivaram Venkataraman commented on SPARK-7230:
----------------------------------------------
[~piccolbo] Thanks for your input. I just want to clarify a couple of things
that I might not have made clear in the ticket description
1. The proposal is not retire the API but just to make it private for the Spark
1.4 release while we can figure out what the API should be. The main problem is
that the RDD API is very verbose with a large number of low-level ETL
functions. Additionally it opens up a number of failure modes which we don't
want to expose to end users in a release. In fact some of the closure cleaning
bugs that you have found are examples of things which are not well specified in
the RDD API at this point.
2. Supporting packages like plyrmr on top of SparkR is definitely something we
would like to do. If you take a look at the first cut design doc linked above
http://goo.gl/GLHKZI the proposal is to go towards an API similar to snow or
`parallel` which are successful and existing R packages. And as far as I know
`rmr2` also has a simple API with only a few functions. Finally I took a look
at the plyrmr codebase as well and from what I can see the main SparkR
functions currently used in plyrmr are `lapply` or `lapplyPartition`. This is
pretty similar to the API required for the use cases described in the doc above.
3. Finally we can continue discussion of what functions should be a part of the
API and what the contracts for UDFs should be in
https://issues.apache.org/jira/browse/SPARK-7264 -- The goal is to have that
for Spark 1.5 release and we'd definitely like your input for it.
> Make RDD API private in SparkR for Spark 1.4
> --------------------------------------------
>
> Key: SPARK-7230
> URL: https://issues.apache.org/jira/browse/SPARK-7230
> Project: Spark
> Issue Type: Sub-task
> Components: SparkR
> Affects Versions: 1.4.0
> Reporter: Shivaram Venkataraman
> Assignee: Shivaram Venkataraman
> Priority: Critical
>
> This ticket proposes making the RDD API in SparkR private for the 1.4
> release. The motivation for doing so are discussed in a larger design
> document aimed at a more top-down design of the SparkR APIs. A first cut that
> discusses motivation and proposed changes can be found at http://goo.gl/GLHKZI
> The main points in that document that relate to this ticket are:
> - The RDD API requires knowledge of the distributed system and is pretty low
> level. This is not very suitable for a number of R users who are used to more
> high-level packages that work out of the box.
> - The RDD implementation in SparkR is not fully robust right now: we are
> missing features like spilling for aggregation, handling partitions which
> don't fit in memory etc. There are further limitations like lack of hashCode
> for non-native types etc. which might affect user experience.
> The only change we will make for now is to not export the RDD functions as
> public methods in the SparkR package and I will create another ticket for
> discussing more details public API for 1.5
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]