<?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>question Re: Ranger KMS not Decrypting Files in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-not-Decrypting-Files/m-p/143965#M48363</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3584/rcicak.html"&gt;Ryan Cicak&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After staring at this with a hortonworks engineer (who was onsite for an unrelated reason), we figured out the problem. The whole time Ranger KMS was doing its job, but I had enabled compression on my mapper outputs with these changes:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;mapreduce.map.output.compress&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;mapreduce.output.fileoutputformat.compress&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;true&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;When I pulled the outputs of my sqoop job they looked like binary, but in reality they were just compressed. After deflating them everything is working correctly.&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 22:47:43 GMT</pubDate>
    <dc:creator>nicholas_pilegg</dc:creator>
    <dc:date>2016-12-21T22:47:43Z</dc:date>
    <item>
      <title>Ranger KMS not Decrypting Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-not-Decrypting-Files/m-p/143963#M48361</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have been trying to pull some data from our SQL Server into hdfs via sqoop. The destination point is an encrypted zone (/secure/). The files are written and when I pull the files with hdfs dfs -get /secure/[folder imported] I am getting gibberish when I open the files. My first though was I couldn't decrypt the file, but when I look at the audit logs in Ranger, I am seeing the access type decrypteek for my user on the read and the write. Below is the sqoop query. Any insights would be great.&lt;/P&gt;&lt;P&gt;sqoop import \ &lt;/P&gt;&lt;P&gt;-D sqoop.test.import.rootDir=hdfs://popul/secure/ \ &lt;/P&gt;&lt;P&gt;--target-dir hdfs://popul/secure/intest/ \ &lt;/P&gt;&lt;P&gt;--connect "jdbc:sqlserver://[serverip]:1433;database=[database]" \ &lt;/P&gt;&lt;P&gt;--username [sqoopuser] \ &lt;/P&gt;&lt;P&gt;--password [password] \ &lt;/P&gt;&lt;P&gt;--table S_Elg \ &lt;/P&gt;&lt;P&gt;--fields-terminated-by "|" \&lt;/P&gt;&lt;P&gt;
--columns "col1, col2, col3" \ &lt;/P&gt;&lt;P&gt;--split-by ElgKey \&lt;/P&gt;&lt;P&gt;
-- --schema ACC &lt;/P&gt;&lt;P&gt;P.S. when I run this query in a non encrypted zone, everything works as expected.&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 22:11:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-not-Decrypting-Files/m-p/143963#M48361</guid>
      <dc:creator>nicholas_pilegg</dc:creator>
      <dc:date>2016-12-08T22:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS not Decrypting Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-not-Decrypting-Files/m-p/143964#M48362</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/13888/nicholaspileggi.html" nodeid="13888"&gt;@Nick Pileggi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you verify the user trying to read the file has the Decrypt EEK permission in Ranger KMS?  &lt;A href="https://community.hortonworks.com/articles/42227/using-transparent-data-encryption-in-hdfs.html"&gt;You can use my article here&lt;/A&gt; as a reference&lt;/P&gt;&lt;P&gt;Is your cluster Kerberized?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 04:14:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-not-Decrypting-Files/m-p/143964#M48362</guid>
      <dc:creator>RyanCicak</dc:creator>
      <dc:date>2016-12-18T04:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS not Decrypting Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-not-Decrypting-Files/m-p/143965#M48363</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3584/rcicak.html"&gt;Ryan Cicak&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After staring at this with a hortonworks engineer (who was onsite for an unrelated reason), we figured out the problem. The whole time Ranger KMS was doing its job, but I had enabled compression on my mapper outputs with these changes:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;mapreduce.map.output.compress&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;mapreduce.output.fileoutputformat.compress&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;true&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;When I pulled the outputs of my sqoop job they looked like binary, but in reality they were just compressed. After deflating them everything is working correctly.&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 22:47:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-not-Decrypting-Files/m-p/143965#M48363</guid>
      <dc:creator>nicholas_pilegg</dc:creator>
      <dc:date>2016-12-21T22:47:43Z</dc:date>
    </item>
  </channel>
</rss>

