Support Questions

Find answers, ask questions, and share your expertise

Create encryption zones

avatar
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

avatar
Super Guru

@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.

View solution in original post

5 REPLIES 5

avatar
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.

avatar
Super Guru

@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.

avatar
Super Guru

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

avatar
Contributor

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

avatar
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 .