From 66af31d13c189d2bb031bab0de1e077a1031c6fd Mon Sep 17 00:00:00 2001 From: Jarek Jarcec Cecho Date: Wed, 9 Oct 2013 12:01:01 -0700 Subject: [PATCH] SQOOP-1213: Support reading password files from Amazon S3 --- src/java/org/apache/sqoop/util/CredentialsUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/sqoop/util/CredentialsUtil.java b/src/java/org/apache/sqoop/util/CredentialsUtil.java index 2d88bd38..64124693 100644 --- a/src/java/org/apache/sqoop/util/CredentialsUtil.java +++ b/src/java/org/apache/sqoop/util/CredentialsUtil.java @@ -57,8 +57,8 @@ public static String fetchPasswordFromFile(Configuration conf, 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! "