Skip to content

Commit

Permalink
'fixcheckstyle'
Browse files Browse the repository at this point in the history
  • Loading branch information
tclxgf13871 committed Nov 26, 2021
1 parent 5072db4 commit faf3055
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,12 @@ void doImportCheckpoint(FSNamesystem target) throws IOException {

if (checkpointDirs == null || checkpointDirs.isEmpty()) {
throw new IOException("Cannot import image from a checkpoint. "
+ "\"dfs.namenode.checkpoint.dir\" is not set." );
+ "\"dfs.namenode.checkpoint.dir\" is not set.");
}

if (checkpointEditsDirs == null || checkpointEditsDirs.isEmpty()) {
throw new IOException("Cannot import image from a checkpoint. "
+ "\"dfs.namenode.checkpoint.edits.dir\" is not set." );
+ "\"dfs.namenode.checkpoint.edits.dir\" is not set.");
}

FSImage realImage = target.getFSImage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ public void testSaveAndLoadStripedINodeFile() throws IOException{
}

@Test
public void testImportCheckpoint() throws IOException{
public void testImportCheckpoint() {
Configuration conf = new Configuration();
conf.set(DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_EDITS_DIR_KEY,"");
conf.set(DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_EDITS_DIR_KEY, "");
MiniDFSCluster cluster = null;
try {
cluster = new MiniDFSCluster.Builder(conf).build();
Expand Down

0 comments on commit faf3055

Please sign in to comment.