Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13022

S3 MD5 check fails on Server Side Encryption-KMS with AWS and default key is used

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.8.0
    • Fix Version/s: None
    • Component/s: fs/s3
    • Labels:
      None
    • Target Version/s:

      Description

      When server side encryption with "aws:kms" value and no custom key is used in S3A Filesystem, the AWSClient fails when verifing Md5:

      Exception in thread "main" com.amazonaws.AmazonClientException: Unable to verify integrity of data upload.  Client calculated content hash (contentMD5: 1B2M2Y8AsgTpgAmY7PhCfg== in base 64) didn't match hash (etag: c29fcc646e17c348bce9cca8f9d205f5 in hex) calculated by Amazon S3.  You may need to delete the data stored in Amazon S3. (metadata.contentMD5: null, md5DigestStream: com.amazonaws.services.s3.internal.MD5DigestCalculatingInputStream@65d9e72a, bucketName: abuse-messages-nonprod, key: venus/raw_events/checkpoint/825eb6aa-543d-46b1-801f-42de9dbc1610/)
      	at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1492)
      	at org.apache.hadoop.fs.s3a.S3AFileSystem.createEmptyObject(S3AFileSystem.java:1295)
      	at org.apache.hadoop.fs.s3a.S3AFileSystem.createFakeDirectory(S3AFileSystem.java:1272)
      	at org.apache.hadoop.fs.s3a.S3AFileSystem.mkdirs(S3AFileSystem.java:969)
      	at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:1888)
      	at org.apache.spark.SparkContext$$anonfun$setCheckpointDir$2.apply(SparkContext.scala:2077)
      	at org.apache.spark.SparkContext$$anonfun$setCheckpointDir$2.apply(SparkContext.scala:2074)
      	at scala.Option.map(Option.scala:145)
      	at org.apache.spark.SparkContext.setCheckpointDir(SparkContext.scala:2074)
      	at org.apache.spark.streaming.StreamingContext.checkpoint(StreamingContext.scala:237)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                leoconco Leonardo Contreras
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: