Member since
02-07-2019
1
Post
0
Kudos Received
0
Solutions
02-07-2019
03:11 PM
val path = "adl://azuredatalakestore.net/xxx/Budget/*.xlsx"
val sc = spark.sparkContext val data = sc.wholeTextFiles(path) var z: Array[String] = new Array[String](7)
var i=1
val files = data.map { case (filename, content) => filename } files.collect.foreach(filename => { println(i + "->" + filename) z(i) = filename
println(z(i)) i = i + 1})
... View more