<?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: CopyFromLocal command fails when run as HDFS user on encryptionZone in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CopyFromLocal-command-fails-when-run-as-HDFS-user-on/m-p/105420#M54484</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/253/ssathish.html" nodeid="253"&gt;@ssathish&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;hdfs user is not usually allowed to access encryption keys. This ensures that even Hadoop admin cannot access the encrypted data. Check in your Ranger KMS who is authorized to access keys and use that user. You should not be using HDFS user to access encryption keys.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/49505/how-to-correctly-setup-the-hdfs-encryption-using-r.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/49505/how-to-correctly-setup-the-hdfs-encryption-using-r.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2017 08:44:05 GMT</pubDate>
    <dc:creator>mqureshi</dc:creator>
    <dc:date>2017-02-15T08:44:05Z</dc:date>
    <item>
      <title>CopyFromLocal command fails when run as HDFS user on encryptionZone</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CopyFromLocal-command-fails-when-run-as-HDFS-user-on/m-p/105418#M54482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My folder /user/testUser is encrypted.&lt;/P&gt;&lt;P&gt;When I try to run copyFromLocal command as HDFS user on /user/testUser, i am getting following exception.&lt;/P&gt;&lt;P&gt;Can someone please help me to resolve this.&lt;/P&gt;&lt;PRE&gt;


sudo su --c "hdfs dfs -copyFromLocal test.txt /user/testUser” hdfs

copyFromLocal: User:hdfs not allowed to do 'DECRYPT_EEK' on ’test_key'

17/02/15 00:26:24 ERROR hdfs.DFSClient: Failed to close inode 17777

org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException): No lease on /user/testUser/test.txt._COPYING_ (inode 17777): File does not exist. Holder DFSClient_NONMAPREDUCE_1724817926_1 does not have any open files.

at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:3659)

at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFileInternal(FSNamesystem.java:3749)

at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFile(FSNamesystem.java:3716)

at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.complete(NameNodeRpcServer.java:911)

at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.complete(ClientNamenodeProtocolServerSideTranslatorPB.java:547)

at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)

at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:640)

at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:982)

at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2351)

at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2347)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.Subject.doAs(Subject.java:422)

at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1833)

at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2345)




at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1554)

at org.apache.hadoop.ipc.Client.call(Client.java:1498)

at org.apache.hadoop.ipc.Client.call(Client.java:1398)

at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:233)

at com.sun.proxy.$Proxy10.complete(Unknown Source)

at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.complete(ClientNamenodeProtocolTranslatorPB.java:503)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:282)

at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:194)

at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:176)

at com.sun.proxy.$Proxy11.complete(Unknown Source)

at org.apache.hadoop.hdfs.DFSOutputStream.completeFile(DFSOutputStream.java:2442)

at org.apache.hadoop.hdfs.DFSOutputStream.closeImpl(DFSOutputStream.java:2419)

at org.apache.hadoop.hdfs.DFSOutputStream.close(DFSOutputStream.java:2384)

at org.apache.hadoop.hdfs.DFSClient.closeAllFilesBeingWritten(DFSClient.java:949)

at org.apache.hadoop.hdfs.DFSClient.closeOutputStreams(DFSClient.java:981)

at org.apache.hadoop.hdfs.DistributedFileSystem.close(DistributedFileSystem.java:1211)

at org.apache.hadoop.fs.FileSystem$Cache.closeAll(FileSystem.java:2886)

at org.apache.hadoop.fs.FileSystem$Cache$ClientFinalizer.run(FileSystem.java:2903)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)
&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:38:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CopyFromLocal-command-fails-when-run-as-HDFS-user-on/m-p/105418#M54482</guid>
      <dc:creator>ssathish</dc:creator>
      <dc:date>2017-02-15T08:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFromLocal command fails when run as HDFS user on encryptionZone</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CopyFromLocal-command-fails-when-run-as-HDFS-user-on/m-p/105419#M54483</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.hortonworks.com/questions/83574/copyfromlocal-command-fails-when-run-as-hdfs-user.html#"&gt;@ssathish&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Can you please share the value of hadoop.kms.blacklist.DECRYPT_EEK from /etc/ranger/kms/conf/dbks-site.xml&lt;/P&gt;&lt;P&gt;Looks like the user 'hdfs' might be blacklisted.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:40:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CopyFromLocal-command-fails-when-run-as-HDFS-user-on/m-p/105419#M54483</guid>
      <dc:creator>namaheshwari</dc:creator>
      <dc:date>2017-02-15T08:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFromLocal command fails when run as HDFS user on encryptionZone</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CopyFromLocal-command-fails-when-run-as-HDFS-user-on/m-p/105420#M54484</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/253/ssathish.html" nodeid="253"&gt;@ssathish&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;hdfs user is not usually allowed to access encryption keys. This ensures that even Hadoop admin cannot access the encrypted data. Check in your Ranger KMS who is authorized to access keys and use that user. You should not be using HDFS user to access encryption keys.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/49505/how-to-correctly-setup-the-hdfs-encryption-using-r.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/49505/how-to-correctly-setup-the-hdfs-encryption-using-r.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:44:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CopyFromLocal-command-fails-when-run-as-HDFS-user-on/m-p/105420#M54484</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2017-02-15T08:44:05Z</dc:date>
    </item>
  </channel>
</rss>

