GitHub user hhbyyh reopened a pull request:

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

    [SPARK-6177][MLlib] LDA should check partitions size of the input

    JIRA: https://issues.apache.org/jira/browse/SPARK-6177 
    Add coalesce to LDA example to avoid the possible massive partitions from 
`sc.textFile`. 
    
    sc.textFile will create RDD with one partition for each file, and the 
possible massive partitions downgrades LDA performance.
    
    A more aggressive improvement will be to add coalesce or at least warning 
for improper partitioning in LDA.run, sounds good?

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

    $ git pull https://github.com/hhbyyh/spark adjustPartition

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

    https://github.com/apache/spark/pull/4899.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 #4899
    
----
commit 26a564ac588ddc695b653b74c7de77d93ea3dcef
Author: Yuhao Yang <[email protected]>
Date:   2015-03-05T05:11:58Z

    add coalesce to LDAExample

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to