sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject git commit: SQOOP-1213: Support reading password files from Amazon S3
Date Wed, 09 Oct 2013 19:02:19 GMT
Updated Branches:
  refs/heads/trunk e187f454c -> 66af31d13


SQOOP-1213: Support reading password files from Amazon S3


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/66af31d1
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/66af31d1
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/66af31d1

Branch: refs/heads/trunk
Commit: 66af31d13c189d2bb031bab0de1e077a1031c6fd
Parents: e187f45
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Wed Oct 9 12:01:01 2013 -0700
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Wed Oct 9 12:01:01 2013 -0700

----------------------------------------------------------------------
 src/java/org/apache/sqoop/util/CredentialsUtil.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/66af31d1/src/java/org/apache/sqoop/util/CredentialsUtil.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/util/CredentialsUtil.java b/src/java/org/apache/sqoop/util/CredentialsUtil.java
index 2d88bd3..6412469 100644
--- a/src/java/org/apache/sqoop/util/CredentialsUtil.java
+++ b/src/java/org/apache/sqoop/util/CredentialsUtil.java
@@ -57,8 +57,8 @@ public final class CredentialsUtil {
                                              String passwordFilePath)
     throws IOException {
     LOG.debug("Fetching password from specified path: " + passwordFilePath);
-    FileSystem fs = FileSystem.get(conf);
     Path path = new Path(passwordFilePath);
+    FileSystem fs = path.getFileSystem(conf);
 
     if (!fs.exists(path)) {
       throw new IOException("The password file does not exist! "


Mime
View raw message