Re: Permission problem in Junit test - Hadoop 2.2.0

2013-12-18 Thread Karim Awara
Note: I have built hadoop not in my home directory but rather in a different volume. -- Best Regards, Karim Ahmed Awara On Wed, Dec 18, 2013 at 10:41 AM, Karim Awara karim.aw...@kaust.edu.sawrote: Still the same problem. IF you notice, The unit test actually created the directories upto

Permission problem in Junit test - Hadoop 2.2.0

2013-12-17 Thread Karim Awara
Hi, I am running Junit test on hadoop 2.2.0 on eclipse on mac os x. Whenever I run the test, I am faced with the following error It seems there is a problem with the permission test data dir. Please advise. 2013-12-18 02:09:19,326 ERROR hdfs.MiniDFSCluster

Re: Permission problem in Junit test - Hadoop 2.2.0

2013-12-17 Thread Ted Yu
Have you set umask to 022 ? See https://issues.apache.org/jira/browse/HDFS-2556 Cheers On Tue, Dec 17, 2013 at 3:12 PM, Karim Awara karim.aw...@kaust.edu.sawrote: Hi, I am running Junit test on hadoop 2.2.0 on eclipse on mac os x. Whenever I run the test, I am faced with the following

Re: Permission problem in Junit test - Hadoop 2.2.0

2013-12-17 Thread Karim Awara
Yes. Nothing yet. I should mention I compiled hadoop 2.2 from the src using maven on a single machine (mac os x). It seems whatever I do in the permissions, the error persists. -- Best Regards, Karim Ahmed Awara On Wed, Dec 18, 2013 at 2:24 AM, Ted Yu yuzhih...@gmail.com wrote: Have you set

Re: Permission problem in Junit test - Hadoop 2.2.0

2013-12-17 Thread Karim Awara
What is weird is that, it has the right permissions in the directories below, but for some reason it got deleted at the build/test/data/dfs/data to be -- permission access -- Best Regards, Karim Ahmed Awara On Wed, Dec 18, 2013 at 2:35 AM, Karim Awara karim.aw...@kaust.edu.sawrote: Yes.

Re: Permission problem in Junit test - Hadoop 2.2.0

2013-12-17 Thread Andre Kelpe
You have to start eclipse from an environment that has the correct umask set, otherwise it will not inherit the settings. Open a terminal, do umask 022 eclipse and re-try to run the tests. - André On Wed, Dec 18, 2013 at 12:35 AM, Karim Awara karim.aw...@kaust.edu.sawrote: Yes. Nothing

Re: Permission problem in Junit test - Hadoop 2.2.0

2013-12-17 Thread Karim Awara
Still the same problem. IF you notice, The unit test actually created the directories upto $HOME_HDFS/build/test/data/dfs without problems at all. I think that because MiniDFSCluster is emulating a cluster of one namenode and two datanodes, it tries to create dir for th datanodes and this is