In this post, we will see about reading a file by
- Spark 3.5.0
- Scala 2.13.12
import org.apache.spark.sql.SparkSession
object testScala extends App {
val spark = SparkSession.builder()
.appName("testApp")
.config("spark.master", "local")
.getOrCreate()
val orderDf = spark.read.csv("path.csv")
orderDf.show()
}
Leave a comment