Skip to content

Commit 30c4323

Browse files
committed
reslove conficts
1 parent 6e8448f commit 30c4323

File tree

1 file changed

+17
-15
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools

1 file changed

+17
-15
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDFSAdmin.java

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,28 @@
3030
import java.util.concurrent.TimeoutException;
3131
import java.util.function.Supplier;
3232

33+
import static org.apache.hadoop.fs.CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_MAX_RETRIES_KEY;
34+
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_DATANODE_DATA_DIR_KEY;
35+
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_DEFAULT;
36+
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY;
37+
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_IMAGE_PARALLEL_LOAD_KEY;
38+
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_HEARTBEAT_RECHECK_INTERVAL_KEY;
39+
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_BLOCK_PLACEMENT_EC_CLASSNAME_KEY;
40+
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_BLOCK_REPLICATOR_CLASSNAME_KEY;
41+
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_AVOID_SLOW_DATANODE_FOR_READ_KEY;
42+
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_BLOCKPLACEMENTPOLICY_EXCLUDE_SLOW_NODES_ENABLED_KEY;
43+
3344
import org.apache.commons.io.FileUtils;
3445
import org.apache.commons.text.TextStringBuilder;
46+
import org.apache.hadoop.fs.FsShell;
47+
import org.apache.hadoop.fs.permission.FsAction;
48+
import org.apache.hadoop.fs.permission.FsPermission;
3549
import org.apache.hadoop.conf.Configuration;
3650
import org.apache.hadoop.conf.ReconfigurationUtil;
3751
import org.apache.hadoop.fs.ChecksumException;
3852
import org.apache.hadoop.fs.FSDataOutputStream;
3953
import org.apache.hadoop.fs.FileSystem;
40-
import org.apache.hadoop.fs.FsShell;
4154
import org.apache.hadoop.fs.Path;
42-
import org.apache.hadoop.fs.permission.FsAction;
43-
import org.apache.hadoop.fs.permission.FsPermission;
4455
import org.apache.hadoop.hdfs.DFSClient;
4556
import org.apache.hadoop.hdfs.DFSConfigKeys;
4657
import org.apache.hadoop.hdfs.DFSTestUtil;
@@ -71,28 +82,18 @@
7182
import org.apache.hadoop.test.PathUtils;
7283
import org.apache.hadoop.util.Lists;
7384
import org.apache.hadoop.util.ToolRunner;
85+
7486
import org.junit.After;
75-
import org.junit.Assert;
7687
import org.junit.Before;
7788
import org.junit.Test;
89+
import org.junit.Assert;
7890
import org.slf4j.Logger;
7991
import org.slf4j.LoggerFactory;
8092

81-
import static org.apache.hadoop.fs.CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_MAX_RETRIES_KEY;
82-
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_BLOCK_PLACEMENT_EC_CLASSNAME_KEY;
83-
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_BLOCK_REPLICATOR_CLASSNAME_KEY;
84-
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_DATANODE_DATA_DIR_KEY;
85-
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_DEFAULT;
86-
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY;
87-
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_IMAGE_PARALLEL_LOAD_KEY;
88-
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_AVOID_SLOW_DATANODE_FOR_READ_KEY;
89-
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_BLOCKPLACEMENTPOLICY_EXCLUDE_SLOW_NODES_ENABLED_KEY;
90-
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_HEARTBEAT_RECHECK_INTERVAL_KEY;
9193
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_MAX_SLOWPEER_COLLECT_NODES_KEY;
9294
import static org.apache.hadoop.hdfs.client.HdfsAdmin.TRASH_PERMISSION;
9395
import static org.hamcrest.CoreMatchers.allOf;
9496
import static org.hamcrest.CoreMatchers.anyOf;
95-
import static org.hamcrest.CoreMatchers.containsString;
9697
import static org.hamcrest.CoreMatchers.is;
9798
import static org.hamcrest.CoreMatchers.not;
9899
import static org.junit.Assert.assertEquals;
@@ -101,6 +102,7 @@
101102
import static org.junit.Assert.assertThat;
102103
import static org.junit.Assert.assertTrue;
103104
import static org.junit.Assert.fail;
105+
import static org.hamcrest.CoreMatchers.containsString;
104106
import static org.mockito.ArgumentMatchers.any;
105107
import static org.mockito.Mockito.mock;
106108
import static org.mockito.Mockito.when;

0 commit comments

Comments
 (0)