AWS SSE-KMS Encryption from Spark / Dataframes

拈花ヽ惹草 提交于 2019-12-11 08:15:38

问题


I have configured encryption enabled EMR cluster (properties in emrfs-site.xml) I am using dataframe savemode.append to write into S3n://my-bucket/path/ to save in s3.

But I am not able to see the object getting AWS KMS encrypted. However, when I do a simple insert from hive from EMR, I am able to see the objects getting aws kms encrypted.

How can I encrypt files from dataframe in S3 using sse kms?


回答1:


The problem was we were using s3a to save the files from spark program to EMR. AWS officially doesn't support use of s3a on EMR. Though we were able to save data in S3, it was not encrypting the data. I tried using s3:// and s3n:// The encryption works with both.



来源:https://stackoverflow.com/questions/41871195/aws-sse-kms-encryption-from-spark-dataframes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!