Support Questions

Find answers, ask questions, and share your expertise

How to use Encrypted zone vi NFS?

avatar
New Contributor

Hi there,

I download sandbox HDP_2.3.2_virtualbox.ova for evaluating the TDE(transparent data encryption) feature. After simple setup, the HDFS CLI works as expected; but I also want to see TDE works with NFS.

As yo can see below, Both TDE and NFS works fine on their own. However, I can't make them to work together. In my tests, I created one encrypted /zone_encr dir and one unencrypted /zone_plain dir; I mounted the HDFS on /mnt/nfs.

Test 1: Unencrypted zone works fine.

copy file to/from /mnt/nfs/zone_plain/ works as epxected;

Test 2: Encrypted zone not working.

[hdfs@sandbox ~]$  cp test.txt /mnt/nfs/zone_encr/testx.txt
cp: cannot create regular file `/mnt/nfs/zone_encr/testx.txt': Permission denied
[hdfs@sandbox ~]$ cat /mnt/nfs/zone_encr/test2.txt 
cat: /mnt/nfs/zone_encr/test2.txt: Stale file handle

Test 3: Giving hdfs all the KMS managed permissions

After giving "hdfs" all the permissions in the KMS policy (did it on the Ranger web site

http://127.0.0.1:6080/index.html#!/service/6/policies/18/edit ), I got different error when copying files to the directory:

[hdfs@sandbox ~]$ cp test.txt /mnt/nfs/zone_plain/fromNFS.txt
cp: cannot create regular file `/mnt/nfs/zone_plain/fromNFS.txt': Input/output error

On the other hand, read works:

[hdfs@sandbox ~]$ cat /mnt/nfs/zone_encr/test3.txt

Any suggestion?

Thanks

John Lee

1 ACCEPTED SOLUTION

avatar
Master Mentor
@john Lee

This can help to give some pointers to resolve this.

1) Support jira https://issues.apache.org/jira/browse/HDFS-7003 (TDE is supported with NFS)

2) Permission denied and I/O error https://issues.apache.org/jira/browse/HDFS-6411

3) It has hint to the problem link (The issue may not be related to TDE)

View solution in original post

4 REPLIES 4

avatar
Master Mentor

avatar
Master Mentor

@john Lee are you still having problems with this? Can you provide your own solution or accept best answer?

avatar
Master Mentor

@Mark Herring no response since 02/02.

avatar
Master Mentor
@john Lee

This can help to give some pointers to resolve this.

1) Support jira https://issues.apache.org/jira/browse/HDFS-7003 (TDE is supported with NFS)

2) Permission denied and I/O error https://issues.apache.org/jira/browse/HDFS-6411

3) It has hint to the problem link (The issue may not be related to TDE)