<?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: HDFS Encryption at Rest - creating hive table gives error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HDFS-Encryption-at-Rest-creating-hive-table-gives-error/m-p/145028#M107600</link>
    <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/12975/mpillai.html"&gt;@Mahesh M. Pillai&lt;/A&gt;, &lt;A href="https://community.hortonworks.com/users/10649/svenkat.html"&gt;@svenkat&lt;/A&gt; - looping you in, any ideas on what needs to be done on this ?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 10:37:34 GMT</pubDate>
    <dc:creator>karan_alang1</dc:creator>
    <dc:date>2017-01-25T10:37:34Z</dc:date>
    <item>
      <title>HDFS Encryption at Rest - creating hive table gives error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-Encryption-at-Rest-creating-hive-table-gives-error/m-p/145027#M107599</link>
      <description>&lt;P&gt;Hell, i'm evaluating &amp;amp; implementing creating Hive table &amp;amp; loading data when the Hive table is pointing to HDFS encryption zone.&lt;/P&gt;&lt;P&gt;Here are the details -&amp;gt;&lt;/P&gt;&lt;P&gt;- created hdfs location -&amp;gt; /encrypt/hive&lt;/P&gt;&lt;P&gt;- created encryption zone&lt;/P&gt;&lt;P&gt;- changed the scrachdir to location in encryption zone -&amp;gt; /encrypt/hive/tmp &amp;amp; provided permission 777&lt;/P&gt;&lt;P&gt;- given access to user - hive to hdfs location &amp;amp; key &lt;/P&gt;&lt;P&gt;- created Hive table using following command -&amp;gt;&lt;/P&gt;&lt;P&gt;create table testtable2 location '/encrypt/hive/testtable2' as select * from sample_07 limit 5;&lt;/P&gt;&lt;P&gt;I get the error shown below, Any ideas ? &lt;/P&gt;&lt;P&gt;Attaching the Ranger permissions screenshots.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11691-screen-shot-2017-01-24-at-30823-pm.png"&gt;screen-shot-2017-01-24-at-30823-pm.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11692-screen-shot-2017-01-24-at-62538-pm.png"&gt;screen-shot-2017-01-24-at-62538-pm.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;NFO : Moving data to: /encrypt/hive/testtable2 from 
hdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/.hive-staging_hive_2017-01-24_23-28-52_250_4192737411546010800-4/-ext-10001
 ERROR : Failed with exception Unable to move source 
hdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/.hive-staging_hive_2017-01-24_23-28-52_250_4192737411546010800-4/-ext-10001
 to destination /encrypt/hive/testtable2 
org.apache.hadoop.hive.ql.metadata.HiveException: Unable to move source 
hdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/.hive-staging_hive_2017-01-24_23-28-52_250_4192737411546010800-4/-ext-10001
 to destination /encrypt/hive/testtable2 at 
org.apache.hadoop.hive.ql.metadata.Hive.moveFile(Hive.java:2692) at 
org.apache.hadoop.hive.ql.exec.MoveTask.moveFile(MoveTask.java:106) at 
org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:223) at 
org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160) at 
org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:89)
 at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1720) at 
org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1477) at 
org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1254) at 
org.apache.hadoop.hive.ql.Driver.run(Driver.java:1118) at 
org.apache.hadoop.hive.ql.Driver.run(Driver.java:1113) at 
org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:154)
 at 
org.apache.hive.service.cli.operation.SQLOperation.access$100(SQLOperation.java:71)
 at 
org.apache.hive.service.cli.operation.SQLOperation$1$1.run(SQLOperation.java:206)
 at java.security.AccessController.doPrivileged(Native Method) at 
javax.security.auth.Subject.doAs(Subject.java:415) at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
 at 
org.apache.hive.service.cli.operation.SQLOperation$1.run(SQLOperation.java:218)
 at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
at java.util.concurrent.FutureTask.run(FutureTask.java:262) at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745) Caused by: 
org.apache.hadoop.ipc.RemoteException(java.io.IOException): 
/apps/hive/warehouse/.hive-staging_hive_2017-01-24_23-28-52_250_4192737411546010800-4/-ext-10001
 can't be moved into an encryption zone.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:36:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-Encryption-at-Rest-creating-hive-table-gives-error/m-p/145027#M107599</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-25T10:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption at Rest - creating hive table gives error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-Encryption-at-Rest-creating-hive-table-gives-error/m-p/145028#M107600</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/12975/mpillai.html"&gt;@Mahesh M. Pillai&lt;/A&gt;, &lt;A href="https://community.hortonworks.com/users/10649/svenkat.html"&gt;@svenkat&lt;/A&gt; - looping you in, any ideas on what needs to be done on this ?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:37:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-Encryption-at-Rest-creating-hive-table-gives-error/m-p/145028#M107600</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-25T10:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption at Rest - creating hive table gives error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-Encryption-at-Rest-creating-hive-table-gives-error/m-p/145029#M107601</link>
      <description>&lt;P&gt;Pls note - i'm able to manually create Hive table in encryption zone, and add data to the table.&lt;/P&gt;&lt;P&gt;However, the 'create as ' command - is giving access error.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:38:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-Encryption-at-Rest-creating-hive-table-gives-error/m-p/145029#M107601</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-25T10:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption at Rest - creating hive table gives error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-Encryption-at-Rest-creating-hive-table-gives-error/m-p/145030#M107602</link>
      <description>&lt;P&gt;hive.exec.stagingdir was already set to - /encrypt/hive/tmp/
&lt;/P&gt;&lt;P&gt;also, scrachdir to location in encryption zone -&amp;gt; /encrypt/hive/tmp &amp;amp; provided permission 777&lt;/P&gt;&lt;P&gt;There is an additional variable that was to be changed -&amp;gt; 
&lt;/P&gt;&lt;P&gt;hive.metastore.warehouse.dir -  I changed this from existing value (/apps/hive/warehouse) to &lt;/P&gt;&lt;P&gt;location in the encrypted zone -&amp;gt; /encrypt/hive, and this problem is fixed.&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;INFO
  : Moving data to: /encrypt/hive/testtable2 from 
hdfs://sandbox.hortonworks.com:8020/encrypt/hive/.hive-staging_hive_2017-01-25_22-54-41_396_5265658181234256688-1/-ext-10001
INFO  : Table default.testtable2 stats: [numFiles=1, numRows=5, totalSize=211, rawDataSize=206]
No rows affected (47.001 seconds)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 07:05:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-Encryption-at-Rest-creating-hive-table-gives-error/m-p/145030#M107602</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-26T07:05:26Z</dc:date>
    </item>
  </channel>
</rss>

