Repository: sqoop Updated Branches: refs/heads/trunk ddd454b9b -> 7fb097829
SQOOP-1303: Can only write to default file system on incremental import (Mark Roddy via Jarek Jarcec Cecho) Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/7fb09782 Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/7fb09782 Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/7fb09782 Branch: refs/heads/trunk Commit: 7fb097829f27b1c78248b632852c948898165366 Parents: ddd454b Author: Jarek Jarcec Cecho <[email protected]> Authored: Fri Apr 11 09:54:24 2014 -0700 Committer: Jarek Jarcec Cecho <[email protected]> Committed: Fri Apr 11 09:54:24 2014 -0700 ---------------------------------------------------------------------- src/java/org/apache/sqoop/util/AppendUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sqoop/blob/7fb09782/src/java/org/apache/sqoop/util/AppendUtils.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/sqoop/util/AppendUtils.java b/src/java/org/apache/sqoop/util/AppendUtils.java index f5a9a60..5eaaa95 100644 --- a/src/java/org/apache/sqoop/util/AppendUtils.java +++ b/src/java/org/apache/sqoop/util/AppendUtils.java @@ -65,7 +65,6 @@ public class AppendUtils { public void append() throws IOException { SqoopOptions options = context.getOptions(); - FileSystem fs = FileSystem.get(options.getConf()); Path tempDir = context.getDestination(); // Try in this order: target-dir or warehouse-dir @@ -78,6 +77,7 @@ public class AppendUtils { } else { userDestDir = new Path(context.getTableName()); } + FileSystem fs = userDestDir.getFileSystem(options.getConf()); int nextPartition = 0;
