HADOOP-14410. Correct spelling of 'beginning' and variants. Contributed By Dongtao Zhang
This commit is contained in:
parent
51b671ef18
commit
4aae2d40a3
@ -135,7 +135,7 @@ public URI getUri() {
|
|||||||
/**
|
/**
|
||||||
* Strip out the root from the path.
|
* Strip out the root from the path.
|
||||||
* @param p - fully qualified path p
|
* @param p - fully qualified path p
|
||||||
* @return - the remaining path without the begining /
|
* @return - the remaining path without the beginning /
|
||||||
* @throws IOException if the p is not prefixed with root
|
* @throws IOException if the p is not prefixed with root
|
||||||
*/
|
*/
|
||||||
String stripOutRoot(final Path p) throws IOException {
|
String stripOutRoot(final Path p) throws IOException {
|
||||||
|
@ -132,7 +132,7 @@ public URI getUri() {
|
|||||||
* Strip out the root from the path.
|
* Strip out the root from the path.
|
||||||
*
|
*
|
||||||
* @param p - fully qualified path p
|
* @param p - fully qualified path p
|
||||||
* @return - the remaining path without the begining /
|
* @return - the remaining path without the beginning /
|
||||||
*/
|
*/
|
||||||
public String stripOutRoot(final Path p) {
|
public String stripOutRoot(final Path p) {
|
||||||
try {
|
try {
|
||||||
|
@ -112,7 +112,7 @@ public void cacheGroupsAdd(List<String> groups) throws IOException {
|
|||||||
protected synchronized List<String> getUsersForNetgroup(String netgroup) {
|
protected synchronized List<String> getUsersForNetgroup(String netgroup) {
|
||||||
String[] users = null;
|
String[] users = null;
|
||||||
try {
|
try {
|
||||||
// JNI code does not expect '@' at the begining of the group name
|
// JNI code does not expect '@' at the beginning of the group name
|
||||||
users = getUsersForNetgroupJNI(netgroup.substring(1));
|
users = getUsersForNetgroupJNI(netgroup.substring(1));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
|
@ -133,7 +133,7 @@ protected String execShellGetUserForNetgroup(final String netgroup)
|
|||||||
throws IOException {
|
throws IOException {
|
||||||
String result = "";
|
String result = "";
|
||||||
try {
|
try {
|
||||||
// shell command does not expect '@' at the begining of the group name
|
// shell command does not expect '@' at the beginning of the group name
|
||||||
result = Shell.execCommand(
|
result = Shell.execCommand(
|
||||||
Shell.getUsersForNetgroupCommand(netgroup.substring(1)));
|
Shell.getUsersForNetgroupCommand(netgroup.substring(1)));
|
||||||
} catch (ExitCodeException e) {
|
} catch (ExitCodeException e) {
|
||||||
|
@ -425,7 +425,7 @@ public Map<ApplicationAttemptId, Set<RMContainer>> selectCandidates(
|
|||||||
|
|
||||||
long currentTime = System.currentTimeMillis();
|
long currentTime = System.currentTimeMillis();
|
||||||
|
|
||||||
// From the begining of the list
|
// From the beginning of the list
|
||||||
for (RMContainer reservedContainer : reservedContainers) {
|
for (RMContainer reservedContainer : reservedContainers) {
|
||||||
// Only try to preempt reserved container after reserved container created
|
// Only try to preempt reserved container after reserved container created
|
||||||
// and cannot be allocated after minTimeout
|
// and cannot be allocated after minTimeout
|
||||||
|
Loading…
Reference in New Issue
Block a user