Also i would suggest you to look at TestDFSPermission & TestDFSShell test cases
for dfs permissions. Which will help you for writing your unit tests.
Thanks
Uma
- Original Message -
From: Joey Echeverria
Date: Friday, November 4, 2011 4:02 am
Subject: Re: Question about superuser
When you get the handle to the FileSystem object you can connect as a
different user:
http://hadoop.apache.org/common/docs/r0.20.203.0/api/org/apache/hadoop/fs/FileSystem.html#get(java.net.URI,
org.apache.hadoop.conf.Configuration, java.lang.String)
This should get any permissions you set enforce
Hi -
I’m writing unit tests that programatically start a name node and populate HDFS
directories, but I want to simulate the situation where I don’t have read
access to some HDFS directory (which happens on the real grid I eventually
deploy to).
I’ve tried to chown and chmod, but it seems to h