5
0
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:
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);
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));
}
}