YARN-4605. Spelling mistake in the help message of "yarn applicationattempt" command. Contributed by Weiwei Yang.
(cherry picked from commit8f58f742ae
) (cherry picked from commitddc22bbcb1
)
This commit is contained in:
parent
b85b8d90d1
commit
ecba5f2ed3
|
@ -1161,6 +1161,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
YARN-4608. Redundant code statement in WritingYarnApplications.
|
YARN-4608. Redundant code statement in WritingYarnApplications.
|
||||||
(Kai Sasaki via aajisaka)
|
(Kai Sasaki via aajisaka)
|
||||||
|
|
||||||
|
YARN-4605. Spelling mistake in the help message of "yarn applicationattempt"
|
||||||
|
command. (Weiwei Yang via aajisaka)
|
||||||
|
|
||||||
Release 2.7.3 - UNRELEASED
|
Release 2.7.3 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -138,7 +138,7 @@ public class ApplicationCLI extends YarnCLI {
|
||||||
opts.addOption(STATUS_CMD, true,
|
opts.addOption(STATUS_CMD, true,
|
||||||
"Prints the status of the application attempt.");
|
"Prints the status of the application attempt.");
|
||||||
opts.addOption(LIST_CMD, true,
|
opts.addOption(LIST_CMD, true,
|
||||||
"List application attempts for aplication.");
|
"List application attempts for application.");
|
||||||
opts.addOption(FAIL_CMD, true, "Fails application attempt.");
|
opts.addOption(FAIL_CMD, true, "Fails application attempt.");
|
||||||
opts.addOption(HELP_CMD, false, "Displays help for all commands.");
|
opts.addOption(HELP_CMD, false, "Displays help for all commands.");
|
||||||
opts.getOption(STATUS_CMD).setArgName("Application Attempt ID");
|
opts.getOption(STATUS_CMD).setArgName("Application Attempt ID");
|
||||||
|
@ -712,7 +712,7 @@ public class ApplicationCLI extends YarnCLI {
|
||||||
throws YarnException, IOException {
|
throws YarnException, IOException {
|
||||||
ApplicationId appId = ConverterUtils.toApplicationId(applicationId);
|
ApplicationId appId = ConverterUtils.toApplicationId(applicationId);
|
||||||
Priority newAppPriority = Priority.newInstance(Integer.parseInt(priority));
|
Priority newAppPriority = Priority.newInstance(Integer.parseInt(priority));
|
||||||
sysout.println("Updating priority of an aplication " + applicationId);
|
sysout.println("Updating priority of an application " + applicationId);
|
||||||
client.updateApplicationPriority(appId, newAppPriority);
|
client.updateApplicationPriority(appId, newAppPriority);
|
||||||
sysout.println("Successfully updated the application with id "
|
sysout.println("Successfully updated the application with id "
|
||||||
+ applicationId + " with priority '" + priority + "'");
|
+ applicationId + " with priority '" + priority + "'");
|
||||||
|
|
|
@ -1721,7 +1721,7 @@ public class TestYarnCLI {
|
||||||
pw.println(" -fail <Application Attempt ID> Fails application attempt.");
|
pw.println(" -fail <Application Attempt ID> Fails application attempt.");
|
||||||
pw.println(" -help Displays help for all commands.");
|
pw.println(" -help Displays help for all commands.");
|
||||||
pw.println(" -list <Application ID> List application attempts for");
|
pw.println(" -list <Application ID> List application attempts for");
|
||||||
pw.println(" aplication.");
|
pw.println(" application.");
|
||||||
pw.println(" -status <Application Attempt ID> Prints the status of the application");
|
pw.println(" -status <Application Attempt ID> Prints the status of the application");
|
||||||
pw.println(" attempt.");
|
pw.println(" attempt.");
|
||||||
pw.close();
|
pw.close();
|
||||||
|
|
|
@ -437,7 +437,7 @@ public class ClientRMService extends AbstractService implements
|
||||||
response = GetApplicationAttemptsResponse.newInstance(listAttempts);
|
response = GetApplicationAttemptsResponse.newInstance(listAttempts);
|
||||||
} else {
|
} else {
|
||||||
throw new YarnException("User " + callerUGI.getShortUserName()
|
throw new YarnException("User " + callerUGI.getShortUserName()
|
||||||
+ " does not have privilage to see this aplication " + appId);
|
+ " does not have privilage to see this application " + appId);
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
@ -488,7 +488,7 @@ public class ClientRMService extends AbstractService implements
|
||||||
.createContainerReport());
|
.createContainerReport());
|
||||||
} else {
|
} else {
|
||||||
throw new YarnException("User " + callerUGI.getShortUserName()
|
throw new YarnException("User " + callerUGI.getShortUserName()
|
||||||
+ " does not have privilage to see this aplication " + appId);
|
+ " does not have privilage to see this application " + appId);
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
@ -541,7 +541,7 @@ public class ClientRMService extends AbstractService implements
|
||||||
response = GetContainersResponse.newInstance(listContainers);
|
response = GetContainersResponse.newInstance(listContainers);
|
||||||
} else {
|
} else {
|
||||||
throw new YarnException("User " + callerUGI.getShortUserName()
|
throw new YarnException("User " + callerUGI.getShortUserName()
|
||||||
+ " does not have privilage to see this aplication " + appId);
|
+ " does not have privilage to see this application " + appId);
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue