5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-04 03:11:00 +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:
Hari Shreedharan 2014-01-16 12:18:05 -08:00
parent 49c0bf9b2e
commit a1e45de8e9

View File

@ -79,11 +79,8 @@ public String loadPassword(String p, Configuration configuration) throws IOExcep
Path path = new Path(p); Path path = new Path(p);
FileSystem fs = path.getFileSystem(configuration); FileSystem fs = path.getFileSystem(configuration);
try { // Not closing FileSystem object because of SQOOP-1226
verifyPath(fs, path); verifyPath(fs, path);
return new String(readBytes(fs, path)); return new String(readBytes(fs, path));
} finally {
fs.close();
}
} }
} }