CDH Version: CDH5.4.5
Problem. When HDFS encryption is enabled using KMS, available in Hadoop CDH 5.4, receiving an error while entering a file into the encryption zone.
Steps:
The steps to encrypt Hadoop are as follows:
Key Creation [SUCCESS]
[tester@master ~]$ hadoop key create 'TDEHDP' -provider kms://https@10.1.118.1/key_generator/kms -size 128 tde group has been successfully created with options Options{cipher='AES/CTR/NoPadding', bitLength=128, description='null', attributes=null}. KMSClientProvider[https://10.1.118.1/key_generator/kms/v1/] has been updated.
2. Creating a directory [SUCCESS]
[tester@master ~]$ hdfs dfs -mkdir /user/tester/vs_key_testdir
Adding an encryption zone [SUCCESS]
[tester@master ~]$ hdfs crypto -createZone -keyName 'TDEHDP' -path /user/tester/vs_key_testdir Added encryption zone /user/tester/vs_key_testdir
Copy file to encryption Zone [ERROR]
[tdetester@master ~]$ hdfs dfs -copyFromLocal test.txt /user/tester/vs_key_testdir
09/15/04 06:06:33 ERROR hdfs.KeyProviderCache: Could not find uri with key [dfs.encryption.key.provider.uri] to create keyProvider !! copyFromLocal: KeyProvider not configured, encrypted file unavailable 15/09/04 06:06:33 ERROR hdfs.DFSClient: unable to close index 20823 org.apache.hadoop.ipc.RemoteException (org.apache.hadoop.hdfs.server.namenode .LeaseExpiredException): No lease on / user / tester / vs _key_testdir / test.txt.COPYING (inode 20823): File does not exist. the holder DFSClient_NONMAPREDUCE_1061684229_1 does not have open files.
Any idea / suggestion would be helpful.
copy encryption hadoop hdfs cloudera-cdh
Jack sparrow
source share