beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (BEAM-4783) Spark SourceRDD Not Designed With Dynamic Allocation In Mind
Date Fri, 24 Aug 2018 20:44:00 GMT


ASF GitHub Bot logged work on BEAM-4783:

                Author: ASF GitHub Bot
            Created on: 24/Aug/18 20:43
            Start Date: 24/Aug/18 20:43
    Worklog Time Spent: 10m 
      Work Description: apilloud commented on issue #6181: [BEAM-4783] Add bundleSize for
splitting BoundedSources.
   Java PreCommits are failing due to unused imports. Can you run `./gradlew :beam-runners-spark:spotlessApply`?
   ping @chamikaramj 

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 137965)
    Time Spent: 0.5h  (was: 20m)

> Spark SourceRDD Not Designed With Dynamic Allocation In Mind
> ------------------------------------------------------------
>                 Key: BEAM-4783
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-spark
>    Affects Versions: 2.5.0
>            Reporter: Kyle Winkelman
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>              Labels: newbie
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
> When the spark-runner is used along with the configuration spark.dynamicAllocation.enabled=true
the SourceRDD does not detect this. It then falls back to the value calculated in this description:
>       // when running on YARN/SparkDeploy it's the result of max(totalCores, 2).
>       // when running on Mesos it's 8.
>       // when running local it's the total number of cores (local = 1, local[N] = N,
>       // local[*] = estimation of the machine's cores).
>       // ** the configuration "spark.default.parallelism" takes precedence over all of
the above **
> So in most cases this default is quite small. This is an issue when using a very large
input file as it will only get split in half.
> I believe that when Dynamic Allocation is enable the SourceRDD should use the DEFAULT_BUNDLE_SIZE
and possibly expose a SparkPipelineOptions that allows you to change this DEFAULT_BUNDLE_SIZE.

This message was sent by Atlassian JIRA

View raw message