title: Load JSON from s3 inside aws glue pyspark job
body: <p>I am trying to retrieve a JSON file from an s3 bucket inside a glue pyspark script. </p>
  
  <p>I am running this function in the job inside aws glue:</p>
  
  <pre><code>def run(spark):
      s3_bucket_path = 's3://bucket/data/file.gz'
  
      df = spark.read.json(s3_bucket_path)
      df.show()
  </code></pre>
  
  <p>After this I am getting:
  AnalysisException: u'Path does not exist: s3://bucket/data/file.gz;'</p>
  
  <p>I searched for this issue and did not find anything that would be similar enough to infer where is the issue. I think there might be permission issues accessing the bucket, but then the error message should be different.</p>