File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
core/src/main/java/com/dtstack/flink/sql/environment Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ public JobExecutionResult execute(StreamGraph streamGraph) throws Exception {
105105 configuration .addAll (jobGraph .getJobConfiguration ());
106106
107107 configuration .setString (TaskManagerOptions .MANAGED_MEMORY_SIZE .key (), "512M" );
108- configuration .setInteger (TaskManagerOptions .NUM_TASK_SLOTS .key (), jobGraph .getMaximumParallelism ());
109108
110109 // add (and override) the settings with what the user defined
111110 configuration .addAll (this .conf );
112111
113112 MiniClusterConfiguration .Builder configBuilder = new MiniClusterConfiguration .Builder ();
114113 configBuilder .setConfiguration (configuration );
114+ configBuilder .setNumSlotsPerTaskManager (jobGraph .getMaximumParallelism ());
115115
116116 if (LOG .isInfoEnabled ()) {
117117 LOG .info ("Running job on local embedded Flink mini cluster" );
You can’t perform that action at this time.
0 commit comments