5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 04:11:44 +08:00

SQOOP-1213: Support reading password files from Amazon S3

This commit is contained in:
Jarek Jarcec Cecho 2013-10-09 12:01:01 -07:00
parent e187f454c5
commit 66af31d13c

View File

@ -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! "