Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Create encryption zones

SOLVED Go to solution
Highlighted

Create encryption zones

New Contributor

Hi,

I am having issues while creating an encryption zone using the HDFS super-user (hdfs). I can list leys just fine but when I exec the create zone command I get:

[hdfs@myhost ~]$ hdfs crypto -createZone -keyName ezkey2 -path /enc_zone2/ 16/11/08 18:46:41 WARN retry.RetryInvocationHandler: Exception while invoking ClientNamenodeProtocolTranslatorPB.createEncryptionZone over sm04.atlnp1/10.121.41.198:8020. Not retrying because try once and fail. org.apache.hadoop.ipc.RemoteException(java.io.FileNotFoundException): cannot find /enc_zone2

Any idea what may be causing this?

Thanks,

Sadek

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Create encryption zones

@Sadek M

Did you created encrypted zone as per doc below -

hdfs dfs -mkdir /zone_encr

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_hdfs_admin_tools/content/config-use-hdfs-...

Can you paste output of below command -

$hadoop key list -metadata
$hdfs crypto -listZones
$hdfs dfs -ls -R /enc_zone2

I suspect the sub-directory structure is not created hence its giving error.
5 REPLIES 5

Re: Create encryption zones

Guru

Can you trying creating an encryption zone on a path which already exists on HDFS ? The error says that it cannot find /enc_zone2. Trying doing "hdfs dfs -mkdir -p /enc_zone2 and then execute this command.

Re: Create encryption zones

@Sadek M

Did you created encrypted zone as per doc below -

hdfs dfs -mkdir /zone_encr

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_hdfs_admin_tools/content/config-use-hdfs-...

Can you paste output of below command -

$hadoop key list -metadata
$hdfs crypto -listZones
$hdfs dfs -ls -R /enc_zone2

I suspect the sub-directory structure is not created hence its giving error.

Re: Create encryption zones

Please do check Ranger-HDFS repository policy also for hdfs user in Ranger webui.

Re: Create encryption zones

New Contributor

The provisioning script should have created it but it hadn't. Thanks!

Re: Create encryption zones

New Contributor

Cryptocurrency blockchain system is based on encrypted code system. All crypto platform is logically encrypted with algorithms. Now am looking for Zcash euro .