----- Original Message -----
From: Josu Lazkano <josu.lazk...@barcelonamedia.org>
Date: Thursday, October 27, 2011 9:38 pm
Subject: Permission denied for normal users
To: hdfs-user@hadoop.apache.org

> Hello list, I am new on Hadoop, I configura a 3 slaves and 1 master
> Hadoop cluster.
> 
> The problem is that with normal users I can not execute nothing:
> 
> $ hadoop dfs -ls /user/josu.lazkano/gutenberg
> Found 7 items
> -rw-r--r--   2 josu.lazkano supergroup     343695 2011-10-11
> 09:47 /user/josu.lazkano/gutenberg/132.txt.utf8
> -rw-r--r--   2 josu.lazkano supergroup     594933 2011-10-11
> 09:47 /user/josu.lazkano/gutenberg/1661.txt.utf8
> -rw-r--r--   2 josu.lazkano supergroup    1945886 2011-10-11
> 09:47 /user/josu.lazkano/gutenberg/19699.txt.utf8
> -rw-r--r--   2 josu.lazkano supergroup     674566 2011-10-11
> 09:47 /user/josu.lazkano/gutenberg/20417.txt.utf8
> -rw-r--r--   2 josu.lazkano supergroup    1573112 2011-10-11
> 09:47 /user/josu.lazkano/gutenberg/4300.txt.utf8
> -rw-r--r--   2 josu.lazkano supergroup    1423801 2011-10-11
> 09:47 /user/josu.lazkano/gutenberg/5000.txt.utf8
> -rw-r--r--   2 josu.lazkano supergroup     393963 2011-10-11
> 09:47 /user/josu.lazkano/gutenberg/972.txt.utf8
> 
> And this happens when I run a jar:
> 
> $ hadoop jar /usr/local/hadoop/hadoop-0.20.2-examples.jar
> wordcount /user/josu.lazkano/gutenberg/ 
> /user/josu.lazkano/gutenberg_outException in thread "main" 
> java.io.IOException: Permission denied
>       at java.io.UnixFileSystem.createFileExclusively(Native Method)
>       at java.io.File.checkAndCreate(File.java:1704)
>       at java.io.File.createTempFile(File.java:1792)
>       at org.apache.hadoop.util.RunJar.main(RunJar.java:115)
This error throws from OS itself. Error is not related to Hadoop permissions. 
First of all, are you able to create file with that user?
Provide the permissions for /user and try.
> 
> With "hduser" user there is no problem with same jar execution (this
> user start the hdfs).
> 
> How could I solve this?
> 
> Thanks and best regards.
> 
> -- 
> Josu Lazkano
> Barcelona Media – Centre d’Innovació
> 
> 
Regards,
Uma

Reply via email to