I am trying to create my first spark script which reads a file and show the content via spark dataframe. I have created a file df.scala and written the below code inside it.