Skip to content

Commit

Permalink
Sometimes resource file will fail to load In ET PythonParallelExt; wi…
Browse files Browse the repository at this point in the history
…ll pick by v1.1.7.1
  • Loading branch information
allwefantasy committed Jan 16, 2019
1 parent 0592f51 commit 6fcc34f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ object HDFSOperator {
fs.copyFromLocalFile(new Path(tempLocalPath),
new Path(path))
if (cleanSource) {
FileUtils.forceDelete(new File(tempLocalPath))
FileUtils.deleteQuietly(new File(tempLocalPath))
}

}
Expand All @@ -157,7 +157,7 @@ object HDFSOperator {
val fs = FileSystem.get(new Configuration())
val tmpFile = new File(tempLocalPath)
if (tmpFile.exists()) {
FileUtils.forceDelete(tmpFile)
FileUtils.deleteQuietly(tmpFile)
}
fs.copyToLocalFile(new Path(path), new Path(tempLocalPath))
}
Expand Down

0 comments on commit 6fcc34f

Please sign in to comment.