title: Trying to read and write parquet files from s3 with local spark
body: <p>I'm trying to read and write parquet files from my local machine to S3 using spark. But I can't seem to configure my spark session properly to do so.  Obviously there are configurations to be made, but I could not find a clear reference on how to do it. </p>
  
  <p>Currently my spark session reads local parquet mocks and is defined as such:</p>
  
  <pre><code>val sparkSession = SparkSession.builder.master("local").appName("spark session example").getOrCreate()
  </code></pre>