YARN-4436. DistShell ApplicationMaster.ExecBatScripStringtPath is misspelled (mattlamantia via rkanter)
This commit is contained in:
parent
e3d15a2e23
commit
8286270466
|
@ -259,8 +259,9 @@ public class ApplicationMaster {
|
||||||
private String domainId = null;
|
private String domainId = null;
|
||||||
|
|
||||||
// Hardcoded path to shell script in launch container's local env
|
// Hardcoded path to shell script in launch container's local env
|
||||||
private static final String ExecShellStringPath = Client.SCRIPT_PATH + ".sh";
|
private static final String EXEC_SHELL_STRING_PATH = Client.SCRIPT_PATH
|
||||||
private static final String ExecBatScripStringtPath = Client.SCRIPT_PATH
|
+ ".sh";
|
||||||
|
private static final String EXEC_BAT_SCRIPT_STRING_PATH = Client.SCRIPT_PATH
|
||||||
+ ".bat";
|
+ ".bat";
|
||||||
|
|
||||||
// Hardcoded path to custom log_properties
|
// Hardcoded path to custom log_properties
|
||||||
|
@ -1025,8 +1026,8 @@ public class ApplicationMaster {
|
||||||
LocalResource shellRsrc = LocalResource.newInstance(yarnUrl,
|
LocalResource shellRsrc = LocalResource.newInstance(yarnUrl,
|
||||||
LocalResourceType.FILE, LocalResourceVisibility.APPLICATION,
|
LocalResourceType.FILE, LocalResourceVisibility.APPLICATION,
|
||||||
shellScriptPathLen, shellScriptPathTimestamp);
|
shellScriptPathLen, shellScriptPathTimestamp);
|
||||||
localResources.put(Shell.WINDOWS ? ExecBatScripStringtPath :
|
localResources.put(Shell.WINDOWS ? EXEC_BAT_SCRIPT_STRING_PATH :
|
||||||
ExecShellStringPath, shellRsrc);
|
EXEC_SHELL_STRING_PATH, shellRsrc);
|
||||||
shellCommand = Shell.WINDOWS ? windows_command : linux_bash_command;
|
shellCommand = Shell.WINDOWS ? windows_command : linux_bash_command;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1037,8 +1038,8 @@ public class ApplicationMaster {
|
||||||
vargs.add(shellCommand);
|
vargs.add(shellCommand);
|
||||||
// Set shell script path
|
// Set shell script path
|
||||||
if (!scriptPath.isEmpty()) {
|
if (!scriptPath.isEmpty()) {
|
||||||
vargs.add(Shell.WINDOWS ? ExecBatScripStringtPath
|
vargs.add(Shell.WINDOWS ? EXEC_BAT_SCRIPT_STRING_PATH
|
||||||
: ExecShellStringPath);
|
: EXEC_SHELL_STRING_PATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set args for the shell command if any
|
// Set args for the shell command if any
|
||||||
|
|
Loading…
Reference in New Issue