hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Permission denied for normal users
Date Thu, 27 Oct 2011 19:30:27 GMT
Josu,

Your /tmp folder is probably inaccessible by all the 'normal' users.
It might be a permissions issue. For reference, this is my /tmp's
signature, where I can create files under /tmp as any useradd-ed user:

"drwxrwxrwt  31 root root    4096 Oct 27 10:32 tmp"

On Thu, Oct 27, 2011 at 9:37 PM, Josu Lazkano
<josu.lazkano@barcelonamedia.org> wrote:
> 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_out
> Exception 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)
>
> 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ó
>
>



-- 
Harsh J

Mime
View raw message