File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ object StreamMetadata extends Logging {
4747
4848 /** Read the metadata from file if it exists */
4949 def read (metadataFile : Path , hadoopConf : Configuration ): Option [StreamMetadata ] = {
50- val fs = FileSystem .get( metadataFile.toUri, hadoopConf)
50+ val fs = metadataFile.getFileSystem( hadoopConf)
5151 if (fs.exists(metadataFile)) {
5252 var input : FSDataInputStream = null
5353 try {
@@ -72,7 +72,7 @@ object StreamMetadata extends Logging {
7272 hadoopConf : Configuration ): Unit = {
7373 var output : FSDataOutputStream = null
7474 try {
75- val fs = FileSystem .get( metadataFile.toUri, hadoopConf)
75+ val fs = metadataFile.getFileSystem( hadoopConf)
7676 output = fs.create(metadataFile)
7777 val writer = new OutputStreamWriter (output)
7878 Serialization .write(metadata, writer)
You can’t perform that action at this time.
0 commit comments