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 {
105
105
configuration .addAll (jobGraph .getJobConfiguration ());
106
106
107
107
configuration .setString (TaskManagerOptions .MANAGED_MEMORY_SIZE .key (), "512M" );
108
- configuration .setInteger (TaskManagerOptions .NUM_TASK_SLOTS .key (), jobGraph .getMaximumParallelism ());
109
108
110
109
// add (and override) the settings with what the user defined
111
110
configuration .addAll (this .conf );
112
111
113
112
MiniClusterConfiguration .Builder configBuilder = new MiniClusterConfiguration .Builder ();
114
113
configBuilder .setConfiguration (configuration );
114
+ configBuilder .setNumSlotsPerTaskManager (jobGraph .getMaximumParallelism ());
115
115
116
116
if (LOG .isInfoEnabled ()) {
117
117
LOG .info ("Running job on local embedded Flink mini cluster" );
You can’t perform that action at this time.
0 commit comments