AvroParquetWriter write to s3 bucket throws data intergrity exception
- Lenguaje dominante
- Java
- Estrellas
- 3.1k
- Forks
- 1.6k
- Merge medio
- 3 d 12 h
- PR fusionados (30 d)
- 33
Descripción
Hi, we are trying to use [org.apache.parquet.avro](https://www.tabnine.com/code/java/packages/org.apache.parquet.avro).AvroParquetWriter
to write parquet file to s3 bucket. The file is successfully written to s3 bucket but
get an exception
com.amazonaws.SdkClientException: Unable to verify integrity of data upload.
The purpose is to resolve this exceptions while The s3 bucket is encrypted with SSE-KMS not SSE-S3.
It appears that the exceptions are thrown because of code blocks in the link below
From amazon doc, the etag is not same as MD5 when s3 bucket is encrypted with SSE-KMS
**The possible way is to pass MD5 in request header or set system.property to disable validation in skipMd5CheckStrategy.skipClientSideValidationPerPutResponse as indicated in link**
The issue is that I do not find a proper way to inject such configurations into AvroParquetWriter. Is this possible? If yes, can you help to show how to do it?
Thanks
Sean
**Reporter**: [sean](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ks666)
**Note**: *This issue was originally created as [PARQUET-2146](https://issues.apache.org/jira/browse/PARQUET-2146). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza con AvroParquetWriter y sigue cómo su configuración de carga de S3 llega a AmazonS3Client, especialmente la ruta de validación enlazada en el informe. Lee SkipMd5CheckStrategy y la documentación de AWS sobre SSE-KMS ETags; el trabajo estará terminado cuando una carga SSE-KMS ya no genere la excepción de integridad o exista una ruta de configuración documentada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, java
- Área
- cloud
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100