Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit f302775

Browse files
committed
Changed default scheduler to Capacity as fair scheduler not working properly with latest build. Also inserted 120s timeout in CloudInit to ensure YUM repo has time to initialize - mitigates dependency failures in build due to java not installing.
1 parent f32d767 commit f302775

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ variables:
680680
title: "YARN Scheduler"
681681
description: "Select YARN Scheduler type"
682682
visible: ${AdvancedOptions}
683+
default: "capacity"
683684

684685
enable_secondary_vnic:
685686
type: boolean

scripts/boot.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ EXECNAME="TUNING"
4141
log "->TUNING START"
4242
sed -i.bak 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
4343
setenforce 0
44+
EXECNAME="PAUSE FOR YUM"
45+
log "->Waiting 120 seconds to ensure YUM is ready to go"
46+
sleep 120
4447
EXECNAME="JAVA"
4548
log "->INSTALL"
4649
yum install java-1.8.0-openjdk.x86_64 -y >> $LOG_FILE

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ variable "vcore_ratio" {
116116
}
117117

118118
variable "yarn_scheduler" {
119-
default = "fair"
119+
default = "capacity"
120120
}
121121

122122
variable "enable_secondary_vnic" {

0 commit comments

Comments
 (0)