GitHub user aarondav opened a pull request:

    https://github.com/apache/spark/pull/922

    SPARK-1839: PySpark RDD#take() shouldn't always read from driver

    This patch simply ports over the Scala implementation of RDD#take(), which 
reads the first partition at the driver, then decides how many more partitions 
it needs to read and will possibly start a real job if it's more than 1. (Note 
that SparkContext#runJob(allowLocal=true) only runs the job locally if there's 
1 partition selected and no parent stages.)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aarondav/spark take

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/922.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #922
    
----
commit fa06df95e7dbfc9799feb913685cc181b0377576
Author: Aaron Davidson <aa...@databricks.com>
Date:   2014-05-30T16:41:55Z

    SPARK-1839: PySpark RDD#take() shouldn't always read from driver
    
    This patch simply ports over the Scala implementation of RDD#take(),
    which reads the first partition at the driver, then decides how many
    more partitions it needs to read and will possibly start a real job
    if it's more than 1. (Note that SparkContext#runJob(allowLocal=true)
    only runs the job locally if there's 1 partition selected and no
    parent stages.)

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to