Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ class HadoopTableReader(
SparkHadoopUtil.get.appendS3AndSparkHadoopConfigurations(
sparkSession.sparkContext.conf, hadoopConf)

// User's configuration that through setCommand should update the hadoopConf
// but the key must start with 'spark.hadoop.'
for ((key, value) <- sparkSession.conf.getAll if key.startsWith("spark.hadoop.")) {
hadoopConf.set(key.substring("spark.hadoop.".length), value)
}

private val _broadcastedHadoopConf =
sparkSession.sparkContext.broadcast(new SerializableConfiguration(hadoopConf))

Expand Down