You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/10/01 06:04:35 UTC

[GitHub] [incubator-seatunnel] ashulin commented on a diff in pull request #2965: [Hotfix][core] Fix spark engine parallelism parameter does not working

ashulin commented on code in PR #2965:
URL: https://github.com/apache/incubator-seatunnel/pull/2965#discussion_r985055705


##########
seatunnel-core/seatunnel-spark-starter/src/main/java/org/apache/seatunnel/core/starter/spark/execution/SourceExecuteProcessor.java:
##########
@@ -57,6 +57,7 @@ public List<Dataset<Row>> execute(List<Dataset<Row>> upstreamDataStreams) {
             Dataset<Row> dataset = sparkEnvironment.getSparkSession()
                 .read()
                 .format(SeaTunnelSource.class.getSimpleName())
+                .option(Constants.PARALLELISM, sparkEnvironment.getSparkConf().get(Constants.PARALLELISM))

Review Comment:
   Can parallelism be set for a single plugin? If the plugin don‘t set the parallelism, get the global parallelism.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org