HADOOP-15254. Correct the wrong word spelling 'intialize'. Contributed by fang zhenyi.

This commit is contained in:
Arpit Agarwal 2018-02-24 14:41:55 -08:00
parent c30a26abc5
commit 2fa7963c3d
10 changed files with 16 additions and 16 deletions

View File

@ -103,7 +103,7 @@ public class Log4Json extends Layout {
/**
* Jackson factories are thread safe when constructing parsers and generators.
* They are not thread safe in configure methods; if there is to be any
* configuration it must be done in a static intializer block.
* configuration it must be done in a static initializer block.
*/
private static final JsonFactory factory = new MappingJsonFactory();
private static final ObjectReader READER = new ObjectMapper(factory).reader();

View File

@ -152,7 +152,7 @@ public class KMSWebApp implements ServletContextListener {
kmsAudit = new KMSAudit(kmsConf);
// intializing the KeyProvider
// initializing the KeyProvider
String providerString = kmsConf.get(KMSConfiguration.KEY_PROVIDER_URI);
if (providerString == null) {
throw new IllegalStateException("No KeyProvider has been defined");

View File

@ -73,7 +73,7 @@ public abstract class StateStoreDriver implements StateStoreRecordOperations {
boolean success = initDriver();
if (!success) {
LOG.error("Cannot intialize driver for {}", getDriverName());
LOG.error("Cannot initialize driver for {}", getDriverName());
return false;
}

View File

@ -240,7 +240,7 @@ public class NamenodeWebHdfsMethods {
final String remoteAddr, final HdfsFileStatus status) throws IOException {
FSNamesystem fsn = namenode.getNamesystem();
if (fsn == null) {
throw new IOException("Namesystem has not been intialized yet.");
throw new IOException("Namesystem has not been initialized yet.");
}
final BlockManager bm = fsn.getBlockManager();

View File

@ -243,7 +243,7 @@ public class TestWebHdfsDataLocality {
NameNode nn = mock(NameNode.class);
when(nn.getNamesystem()).thenReturn(null);
exception.expect(IOException.class);
exception.expectMessage("Namesystem has not been intialized yet.");
exception.expectMessage("Namesystem has not been initialized yet.");
NamenodeWebHdfsMethods.chooseDatanode(nn, "/path", PutOpParam.Op.CREATE, 0,
DFSConfigKeys.DFS_BLOCK_SIZE_DEFAULT, null, LOCALHOST, null);
}

View File

@ -1255,7 +1255,7 @@ public class MRAppMaster extends CompositeService {
boolean initFailed = false;
if (!errorHappenedShutDown) {
// create a job event for job intialization
// create a job event for job initialization
JobEvent initJobEvent = new JobEvent(job.getID(), JobEventType.JOB_INIT);
// Send init to the job (this does NOT trigger job execution)
// This is a synchronous call, not an event through dispatcher. We want

View File

@ -98,7 +98,7 @@ public class JobHistory extends AbstractService implements HistoryContext {
try {
hsManager.initExisting();
} catch (IOException e) {
throw new YarnRuntimeException("Failed to intialize existing directories", e);
throw new YarnRuntimeException("Failed to initialize existing directories", e);
}
storage = createHistoryStorage();

View File

@ -154,7 +154,7 @@ public class StreamJob implements Tool {
/**
* This is the method that actually
* intializes the job conf and submits the job
* initializes the job conf and submits the job
* to the jobtracker
* @throws IOException
* @deprecated use {@link #run(String[])} instead.

View File

@ -117,7 +117,7 @@ public class QueuePriorityContainerCandidateSelector
return list;
}
private void intializePriorityDigraph() {
private void initializePriorityDigraph() {
if (LOG.isDebugEnabled()) {
LOG.debug("Initializing priority preemption directed graph:");
}
@ -383,7 +383,7 @@ public class QueuePriorityContainerCandidateSelector
// Initialize digraph from queues
// TODO (wangda): only do this when queue refreshed.
priorityDigraph.clear();
intializePriorityDigraph();
initializePriorityDigraph();
// When all queues are set to same priority, or priority is not respected,
// direct return.

View File

@ -540,7 +540,7 @@ public class TestResourceTrackerService extends NodeLabelTestBase {
try {
nodeLabelsMgr.addToCluserNodeLabelsWithDefaultExclusivity(toSet("A", "B", "C"));
} catch (IOException e) {
Assert.fail("Caught Exception while intializing");
Assert.fail("Caught Exception while initializing");
e.printStackTrace();
}
@ -589,7 +589,7 @@ public class TestResourceTrackerService extends NodeLabelTestBase {
try {
nodeLabelsMgr.addToCluserNodeLabelsWithDefaultExclusivity(toSet("X", "Y", "Z"));
} catch (IOException e) {
Assert.fail("Caught Exception while intializing");
Assert.fail("Caught Exception while initializing");
e.printStackTrace();
}
@ -642,7 +642,7 @@ public class TestResourceTrackerService extends NodeLabelTestBase {
try {
nodeLabelsMgr.addToCluserNodeLabelsWithDefaultExclusivity(toSet("X", "Y", "Z"));
} catch (IOException e) {
Assert.fail("Caught Exception while intializing");
Assert.fail("Caught Exception while initializing");
e.printStackTrace();
}
@ -694,7 +694,7 @@ public class TestResourceTrackerService extends NodeLabelTestBase {
try {
nodeLabelsMgr.addToCluserNodeLabelsWithDefaultExclusivity(toSet("A", "B", "C"));
} catch (IOException e) {
Assert.fail("Caught Exception while intializing");
Assert.fail("Caught Exception while initializing");
e.printStackTrace();
}
ResourceTrackerService resourceTrackerService =
@ -754,7 +754,7 @@ public class TestResourceTrackerService extends NodeLabelTestBase {
try {
nodeLabelsMgr.addToCluserNodeLabelsWithDefaultExclusivity(toSet("A", "B", "C"));
} catch (IOException e) {
Assert.fail("Caught Exception while intializing");
Assert.fail("Caught Exception while initializing");
e.printStackTrace();
}
@ -839,7 +839,7 @@ public class TestResourceTrackerService extends NodeLabelTestBase {
try {
nodeLabelsMgr.addToCluserNodeLabelsWithDefaultExclusivity(toSet("A", "B", "C"));
} catch (IOException e) {
Assert.fail("Caught Exception while intializing");
Assert.fail("Caught Exception while initializing");
e.printStackTrace();
}