Richard Gilmore
07/05/2021, 11:11 AMspark.sql("select * from example.batch_summary version as of 16").write.format("delta").partitionBy("aggregated_date").save("<s3a://lakefs-data/master/example/batch_summary>")
but failing on the delta log commit:
AWSSecurityTokenServiceException: The security token included in the request is invalid. (Service: AWSSecurityTokenService; Status Code: 403; Error Code: InvalidClientTokenId; Request ID: b06a9752-c07c-4f5d-8a18-0099d3fb31be)
spark.sparkContext.hadoopConfiguration.set(s"fs.s3a.bucket.${repo}.access.key", dbutils.secrets.get("development","LAKEFS_ACCESS_KEY"))
spark.sparkContext.hadoopConfiguration.set(s"fs.s3a.bucket.${repo}.secret.key", dbutils.secrets.get("development","LAKEFS_SECRET_ACCESS_KEY"))
spark.sparkContext.hadoopConfiguration.set(s"fs.s3a.bucket.${repo}.endpoint", "<http://s3.lakefs.dev.example.com>")
spark.sparkContext.hadoopConfiguration.set(s"fs.s3a.bucket.${repo}.connection.ssl.enabled", "false")
Tal Sofer
07/05/2021, 11:21 AMTal Sofer
07/05/2021, 11:40 AMspark.hadoop.fs.s3a.bucket.<repo-name>.aws.credentials.provider shaded.databricks.org.apache.hadoop.fs.s3a.TemporaryAWSCredentialsProvider
spark.hadoop.fs.s3a.bucket.<repo-name>.session.token lakefs
Tal Sofer
07/05/2021, 11:41 AMRichard Gilmore
07/05/2021, 12:00 PMTal Sofer
07/05/2021, 12:04 PM