File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
peel-extensions/src/main/scala/org/peelframework/flink/beans/system Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -93,13 +93,14 @@ class FlinkYarnSession(
93
93
94
94
// await for all futureInitOps to finish
95
95
Await .result(futureInitOps, Math .max(30 , 5 * hosts.size).seconds)
96
+ val numberOfTaskSlots = config.getString(s " system. $configKey.config.yaml.taskmanager.numberOfTaskSlots " )
96
97
97
98
var failedStartUpAttempts = 0
98
99
while (! isUp) {
99
100
try {
100
101
var done = false
101
102
102
- shell ! s " ${config.getString(s " system. $configKey.path.home " )}/bin/yarn-session.sh -d "
103
+ shell ! s " ${config.getString(s " system. $configKey.path.home " )}/bin/yarn-session.sh -n ${hosts.size} -s $numberOfTaskSlots - d"
103
104
104
105
var cntr = config.getInt(s " system. $configKey.startup.polling.counter " )
105
106
while (! done) {
You can’t perform that action at this time.
0 commit comments