<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article How to enable server side encryption in S3 when using Spark Local? in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-enable-server-side-encryption-in-S3-when-using-Spark/ta-p/2151046</link>
    <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-question-zone"&gt; 
 &lt;H2&gt;Question&lt;/H2&gt; 
 &lt;P&gt;I want to use Spark Local with Amazon S3, and need to have server side encryption enabled in S3 when creating the target file. When using EMR or &lt;STRONG&gt;tHDFSConfiguration&lt;/STRONG&gt;, I can set this property in the &lt;STRONG&gt;tHDFSConfig&lt;/STRONG&gt; connector using &lt;STRONG&gt;fs.s3n.server-side-encryption-algorithm&lt;/STRONG&gt;, but when using Spark Local there is no &lt;STRONG&gt;tHDFSConfiguration&lt;/STRONG&gt;. How can I set this property?&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;I've tried writing a local file and then using &lt;STRONG&gt;tS3Put&lt;/STRONG&gt;, but this throws a compile error as there seems to be a jar collision when a Spark Local Job and a standard Job with &lt;STRONG&gt;tS3*&lt;/STRONG&gt; are coupled together.&lt;/P&gt; 
&lt;/DIV&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;DIV class="lia-message-template-answer-zone"&gt; 
 &lt;H2&gt;Answer&lt;/H2&gt; 
 &lt;P&gt;You can set Hadoop configuration properties in the Spark Advanced Properties by adding the &lt;STRONG&gt;spark.hadoop.&lt;/STRONG&gt; prefix. In this case, it should be &lt;STRONG&gt;spark.hadoop.fs.s3n.server-side-encryption-algorithm&lt;/STRONG&gt;, and it then should be automatically injected into any Hadoop configurations that the Spark local Job creates.&lt;/P&gt; 
&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 06 Feb 2024 15:10:57 GMT</pubDate>
    <dc:creator>TalendSolutionExpert</dc:creator>
    <dc:date>2024-02-06T15:10:57Z</dc:date>
    <item>
      <title>How to enable server side encryption in S3 when using Spark Local?</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-enable-server-side-encryption-in-S3-when-using-Spark/ta-p/2151046</link>
      <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-question-zone"&gt; 
 &lt;H2&gt;Question&lt;/H2&gt; 
 &lt;P&gt;I want to use Spark Local with Amazon S3, and need to have server side encryption enabled in S3 when creating the target file. When using EMR or &lt;STRONG&gt;tHDFSConfiguration&lt;/STRONG&gt;, I can set this property in the &lt;STRONG&gt;tHDFSConfig&lt;/STRONG&gt; connector using &lt;STRONG&gt;fs.s3n.server-side-encryption-algorithm&lt;/STRONG&gt;, but when using Spark Local there is no &lt;STRONG&gt;tHDFSConfiguration&lt;/STRONG&gt;. How can I set this property?&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;I've tried writing a local file and then using &lt;STRONG&gt;tS3Put&lt;/STRONG&gt;, but this throws a compile error as there seems to be a jar collision when a Spark Local Job and a standard Job with &lt;STRONG&gt;tS3*&lt;/STRONG&gt; are coupled together.&lt;/P&gt; 
&lt;/DIV&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;DIV class="lia-message-template-answer-zone"&gt; 
 &lt;H2&gt;Answer&lt;/H2&gt; 
 &lt;P&gt;You can set Hadoop configuration properties in the Spark Advanced Properties by adding the &lt;STRONG&gt;spark.hadoop.&lt;/STRONG&gt; prefix. In this case, it should be &lt;STRONG&gt;spark.hadoop.fs.s3n.server-side-encryption-algorithm&lt;/STRONG&gt;, and it then should be automatically injected into any Hadoop configurations that the Spark local Job creates.&lt;/P&gt; 
&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Feb 2024 15:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-enable-server-side-encryption-in-S3-when-using-Spark/ta-p/2151046</guid>
      <dc:creator>TalendSolutionExpert</dc:creator>
      <dc:date>2024-02-06T15:10:57Z</dc:date>
    </item>
  </channel>
</rss>

