AWS S3 : Spark - java.lang.IllegalArgumentException: URI is not absolute… while saving dataframe to s3 location as json
问题 I am getting strange error while saving dataframe to AWS S3. df.coalesce(1).write.mode(SaveMode.Overwrite) .json(s"s3://myawsacc/results/") In the same location I was able to insert the data from spark-shell . and is working... spark.sparkContext.parallelize(1 to 4).toDF.write.mode(SaveMode.Overwrite) .format("com.databricks.spark.csv") .save(s"s3://myawsacc/results/") My question is why its working in spark-shell and is not working via spark-submit ? Is there any logic/properties