Return-Path: X-Original-To: apmail-flink-commits-archive@minotaur.apache.org Delivered-To: apmail-flink-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 97F8519ECB for ; Tue, 22 Mar 2016 11:44:32 +0000 (UTC) Received: (qmail 91968 invoked by uid 500); 22 Mar 2016 11:44:32 -0000 Delivered-To: apmail-flink-commits-archive@flink.apache.org Received: (qmail 91940 invoked by uid 500); 22 Mar 2016 11:44:32 -0000 Mailing-List: contact commits-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list commits@flink.apache.org Received: (qmail 91931 invoked by uid 99); 22 Mar 2016 11:44:32 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2016 11:44:32 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3EED7DFAB5; Tue, 22 Mar 2016 11:44:32 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: chiwanpark@apache.org To: commits@flink.apache.org Message-Id: <13791aa1e9d243dcb0a52f6f9dd443ec@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: flink git commit: [FLINK-3645] [tests] Force HDFSCopyUtilitiesTest to use local file system Date: Tue, 22 Mar 2016 11:44:32 +0000 (UTC) Repository: flink Updated Branches: refs/heads/master ede7fdc4a -> 9c8747d38 [FLINK-3645] [tests] Force HDFSCopyUtilitiesTest to use local file system This closes #1825. Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/9c8747d3 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/9c8747d3 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/9c8747d3 Branch: refs/heads/master Commit: 9c8747d38eb593e330d3c310511605109e957b56 Parents: ede7fdc Author: Chiwan Park Authored: Tue Mar 22 17:44:35 2016 +0900 Committer: Chiwan Park Committed: Tue Mar 22 20:43:28 2016 +0900 ---------------------------------------------------------------------- .../org/apache/flink/streaming/util/HDFSCopyUtilitiesTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/9c8747d3/flink-streaming-java/src/test/java/org/apache/flink/streaming/util/HDFSCopyUtilitiesTest.java ---------------------------------------------------------------------- diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/util/HDFSCopyUtilitiesTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/util/HDFSCopyUtilitiesTest.java index 9022e18..f16750d 100644 --- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/util/HDFSCopyUtilitiesTest.java +++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/util/HDFSCopyUtilitiesTest.java @@ -62,7 +62,7 @@ public class HDFSCopyUtilitiesTest { HDFSCopyFromLocal.copyFromLocal( originalFile, - new Path(copyFile.getAbsolutePath()).toUri()); + new Path("file://" + copyFile.getAbsolutePath()).toUri()); try (DataInputStream in = new DataInputStream(new FileInputStream(copyFile))) { assertTrue(in.readUTF().equals("Hello there, 42!")); @@ -87,7 +87,7 @@ public class HDFSCopyUtilitiesTest { } HDFSCopyToLocal.copyToLocal( - new Path(originalFile.getAbsolutePath()).toUri(), + new Path("file://" + originalFile.getAbsolutePath()).toUri(), copyFile); try (DataInputStream in = new DataInputStream(new FileInputStream(copyFile))) {