Skip to content

Commit be8b9cb

Browse files
committed
Fix javac: [deprecation] warning
1 parent b8d3ef3 commit be8b9cb

File tree

1 file changed

+2
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer

1 file changed

+2
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer2.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.apache.hadoop.hdfs.HdfsConfiguration;
3232
import org.apache.hadoop.hdfs.MiniDFSCluster;
3333
import org.apache.hadoop.hdfs.NameNodeProxies;
34+
import org.apache.hadoop.hdfs.client.HdfsClientConfigKeys;
3435
import org.apache.hadoop.hdfs.protocol.ClientProtocol;
3536
import org.apache.hadoop.hdfs.protocol.DatanodeID;
3637
import org.apache.hadoop.hdfs.protocol.DatanodeInfo;
@@ -678,7 +679,7 @@ public void testMaxIterationTime() throws Exception {
678679
4 * 1024 * 1024);
679680
// set client socket timeout to have an IN_PROGRESS notification back from
680681
// the DataNode about the copy in every second.
681-
conf.setLong(DFSConfigKeys.DFS_CLIENT_SOCKET_TIMEOUT_KEY, 2000L);
682+
conf.setLong(HdfsClientConfigKeys.DFS_CLIENT_SOCKET_TIMEOUT_KEY, 2000L);
682683
// set max iteration time to 500 ms to timeout before moving any block
683684
conf.setLong(DFSConfigKeys.DFS_BALANCER_MAX_ITERATION_TIME_KEY, 500L);
684685
// setup the cluster

0 commit comments

Comments
 (0)