mirror of
https://github.com/apache/sqoop.git
synced 2025-05-03 15:19:38 +08:00
SQOOP-1226. --password-file option triggers FileSystemClosed exception at end of Oozie action
(Jarek Jarcec Cecho via Hari Shreedharan)
This commit is contained in:
parent
49c0bf9b2e
commit
a1e45de8e9
@ -79,11 +79,8 @@ public String loadPassword(String p, Configuration configuration) throws IOExcep
|
||||
Path path = new Path(p);
|
||||
FileSystem fs = path.getFileSystem(configuration);
|
||||
|
||||
try {
|
||||
verifyPath(fs, path);
|
||||
return new String(readBytes(fs, path));
|
||||
} finally {
|
||||
fs.close();
|
||||
}
|
||||
// Not closing FileSystem object because of SQOOP-1226
|
||||
verifyPath(fs, path);
|
||||
return new String(readBytes(fs, path));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user