Skip to content

Commit

Permalink
[BugFix][Spark] Close the FileSystem Object
Browse files Browse the repository at this point in the history
  • Loading branch information
haohao0103 authored Oct 23, 2023
1 parent ea34615 commit 375241c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ object FileSystem {
// consistent with c++ library, convert to little-endian
output.writeLong(java.lang.Long.reverseBytes(value))
output.close()
fs.close()
}

def readValue(inputPath: String, hadoopConfig: Configuration): Long = {
Expand Down

0 comments on commit 375241c

Please sign in to comment.