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:
parent
e187f454c5
commit
66af31d13c
@ -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! "
|
||||
|
Loading…
Reference in New Issue
Block a user