From 0dcf843c008f2b9cece8c0a0cef78140398ac464 Mon Sep 17 00:00:00 2001 From: Brahma Reddy Battula Date: Thu, 1 Jun 2017 22:29:29 +0800 Subject: [PATCH] HDFS-11893. Fix TestDFSShell.testMoveWithTargetPortEmpty failure. Contributed by Brahma Reddy Battula. --- .../src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java index 3f6b2689f9..c82c0455ee 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java @@ -789,7 +789,7 @@ public void testMoveWithTargetPortEmpty() throws Exception { argv = new String[3]; argv[0] = "-mv"; argv[1] = srcFs.getUri() + "/testfile"; - argv[2] = "hdfs://localhost/testfile2"; + argv[2] = "hdfs://" + srcFs.getUri().getHost() + "/testfile2"; int ret = ToolRunner.run(shell, argv); assertEquals("mv should have succeeded", 0, ret); } finally {