Skip to content

Commit

Permalink
get hadoop configuration from spark session
Browse files Browse the repository at this point in the history
  • Loading branch information
allwefantasy committed Sep 9, 2023
1 parent 68c5d1b commit 87f0e2d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.execution.WowTableIdentifier
import org.apache.spark.sql.mlsql.session.MLSQLException
import tech.mlsql.common.utils.path.PathFun
import tech.mlsql.tool.HDFSOperatorV2

/**
* 2019-08-31 WilliamZhu(allwefantasy@gmail.com)
Expand Down Expand Up @@ -55,7 +56,7 @@ class DataLake(sparkSession: SparkSession) {
}

private def listPath(path: Path) = {
val fs = FileSystem.get(new Configuration())
val fs = FileSystem.get(HDFSOperatorV2.hadoopConfiguration)
fs.listStatus(path)
}
}
Expand Down

0 comments on commit 87f0e2d

Please sign in to comment.