Configuring Spark access for S3A
You must configure specific properties for client applications such as Spark to access the Ozone data store using S3A.
- You must import the CA certificate to run Ozone S3 Gateway from the S3A filesystem.
- You must create an ozone-s3.properties file with the following
configuration to run the Spark word count program:
spark.hadoop.fs.s3a.impl = org.apache.hadoop.fs.s3a.S3AFileSystem spark.hadoop.fs.s3a.access.key = <access key> spark.hadoop.fs.s3a.secret.key = <secret> spark.hadoop.fs.s3a.endpoint = <Ozone S3 endpoint url> spark.hadoop.fs.s3a.bucket.probe = 0 spark.hadoop.fs.s3a.change.detection.version.required = false spark.hadoop.fs.s3a.change.detection.mode = none spark.hadoop.fs.s3a.path.style.access = true