Skip to content

Commit

Permalink
[hotfix] respect default local number of task managers
Browse files Browse the repository at this point in the history
  • Loading branch information
mxm committed Dec 15, 2015
1 parent e20c639 commit e248618
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ public void updateAccumulators(AccumulatorSnapshot accumulatorSnapshot) {
LOG.warn("Received accumulator result for unknown execution {}.", execID);
}
} catch (Exception e) {
LOG.error("Cannot update accumulators for job " + jobID, e);
LOG.error("Cannot update accumulators for job {}.", jobID, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ class LocalFlinkMiniCluster(
ConfigConstants.DEFAULT_TASK_MANAGER_NETWORK_NUM_BUFFERS) * bufferSize.toLong

val numTaskManager = config.getInteger(
ConfigConstants.LOCAL_NUMBER_TASK_MANAGER, 1)
ConfigConstants.LOCAL_NUMBER_TASK_MANAGER,
ConfigConstants.DEFAULT_LOCAL_NUMBER_TASK_MANAGER)

val memoryFraction = config.getFloat(
ConfigConstants.TASK_MANAGER_MEMORY_FRACTION_KEY,
Expand All @@ -184,7 +185,8 @@ class LocalFlinkMiniCluster(

config.setString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY, hostname)

config.setInteger(ConfigConstants.LOCAL_NUMBER_TASK_MANAGER, 1)
config.setInteger(ConfigConstants.LOCAL_NUMBER_TASK_MANAGER,
ConfigConstants.DEFAULT_LOCAL_NUMBER_TASK_MANAGER)

// Reduce number of threads for local execution
config.setInteger(NettyConfig.NUM_THREADS_CLIENT, 1)
Expand Down

0 comments on commit e248618

Please sign in to comment.