mirror of
https://github.com/apache/sqoop.git
synced 2025-05-04 05:39:35 +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)
|
String passwordFilePath)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
LOG.debug("Fetching password from specified path: " + passwordFilePath);
|
LOG.debug("Fetching password from specified path: " + passwordFilePath);
|
||||||
FileSystem fs = FileSystem.get(conf);
|
|
||||||
Path path = new Path(passwordFilePath);
|
Path path = new Path(passwordFilePath);
|
||||||
|
FileSystem fs = path.getFileSystem(conf);
|
||||||
|
|
||||||
if (!fs.exists(path)) {
|
if (!fs.exists(path)) {
|
||||||
throw new IOException("The password file does not exist! "
|
throw new IOException("The password file does not exist! "
|
||||||
|
Loading…
Reference in New Issue
Block a user