crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwi...@apache.org
Subject git commit: CRUNCH-220: Ensure existing target checking works on all filesystems
Date Tue, 18 Jun 2013 03:28:56 GMT
Updated Branches:
  refs/heads/master e03103759 -> 45cef2dc5


CRUNCH-220: Ensure existing target checking works on all filesystems


Project: http://git-wip-us.apache.org/repos/asf/crunch/repo
Commit: http://git-wip-us.apache.org/repos/asf/crunch/commit/45cef2dc
Tree: http://git-wip-us.apache.org/repos/asf/crunch/tree/45cef2dc
Diff: http://git-wip-us.apache.org/repos/asf/crunch/diff/45cef2dc

Branch: refs/heads/master
Commit: 45cef2dc5978e487e7927149e47a0a937f6f514b
Parents: e031037
Author: Josh Wills <jwills@apache.org>
Authored: Mon Jun 17 10:11:19 2013 -0700
Committer: Josh Wills <jwills@apache.org>
Committed: Mon Jun 17 10:11:19 2013 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/crunch/io/impl/FileTargetImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/crunch/blob/45cef2dc/crunch-core/src/main/java/org/apache/crunch/io/impl/FileTargetImpl.java
----------------------------------------------------------------------
diff --git a/crunch-core/src/main/java/org/apache/crunch/io/impl/FileTargetImpl.java b/crunch-core/src/main/java/org/apache/crunch/io/impl/FileTargetImpl.java
index 5ceb3be..ea424e7 100644
--- a/crunch-core/src/main/java/org/apache/crunch/io/impl/FileTargetImpl.java
+++ b/crunch-core/src/main/java/org/apache/crunch/io/impl/FileTargetImpl.java
@@ -187,7 +187,7 @@ public class FileTargetImpl implements PathTarget {
   public void handleExisting(WriteMode strategy, Configuration conf) {
     FileSystem fs = null;
     try {
-      fs = FileSystem.get(conf);
+      fs = path.getFileSystem(conf);
     } catch (IOException e) {
       LOG.error("Could not retrieve FileSystem object to check for existing path", e);
       throw new CrunchRuntimeException(e);


Mime
View raw message