title: unable to connect to minio-s3 spark
body: <p>I am trying to connect to s3 provided by minio using spark But it is saying the <strong>bucket minikube does not exists</strong>. (created bucket already)</p>
  
  <pre><code>val spark = SparkSession.builder().appName("AliceProcessingTwentyDotTwo")
      .config("spark.serializer", "org.apache.spark.serializer.KryoSerializer").master("local[1]")
      .getOrCreate()
    val sc= spark.sparkContext
    sc.hadoopConfiguration.set("fs.s3a.impl", "org.apache.hadoop.fs.s3a.S3AFileSystem")
    sc.hadoopConfiguration.set("fs.s3a.endpoint", "http://localhost:9000")
    sc.hadoopConfiguration.set("fs.s3a.access.key", "minioadmin")
    sc.hadoopConfiguration.set("fs.s3a.secret.key", "minioadmin")
    sc.hadoopConfiguration.set("fs.s3`a`.path.style.access", "true")
    sc.hadoopConfiguration.set("fs.s3a.connection.ssl.enabled","false")  
    sc.textFile("""s3a://minikube/data.json""").collect()
  </code></pre>
  
  <p>I am using the following guide to connect. </p>
  
  <blockquote>
    <p><a href="https://github.com/minio/cookbook/blob/master/docs/apache-spark-with-minio.md" rel="nofollow noreferrer">https://github.com/minio/cookbook/blob/master/docs/apache-spark-with-minio.md</a></p>
  </blockquote>
  
  <p>These are the dependencies I used in scala.</p>
  
  <blockquote>
    <p>"org.apache.spark" %% "spark-core" % "2.4.0",   "org.apache.spark" %%
    "spark-sql" % "2.4.0", "com.amazonaws" % "aws-java-sdk" % "1.11.712", 
    "org.apache.hadoop" % "hadoop-aws" % "2.7.3",</p>
  </blockquote>