hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Problem with running hadoop jar demo.jar in local mode.
Date Sat, 23 Jun 2012 09:09:17 GMT
Your local /tmp directory needs to be writable by your user, for the
"hadoop jar" method to execute properly out of the box.

If that is not possible, edit your conf/core-site.xml to change the
"hadoop.tmp.dir" default of "/tmp/hadoop-${user.name}" to somewhere
that is writable by you, perhaps "${user.home}/tmp" for your user
alone.

On Sat, Jun 23, 2012 at 1:10 PM, Sheng Guo <enigmaguo@gmail.com> wrote:
> Hi all,
>
> sorry to bother, I have a simple hadoop job. It was running well both in
> local mode and in real hadoop cluster. Recently I try to run it again in
> single node cluster, and I got the following error:
>
> $ hadoop-1.0.1/bin/hadoop jar CarDemo.jar
>
> Exception in thread "main" java.io.IOException: Mkdirs failed to create
> /tmp/hadoop-sguo/hadoop-unjar6763909861121801460/META-INF/license
> at org.apache.hadoop.util.RunJar.unJar(RunJar.java:47)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:132)
>
>
> I tried this both on 0.20.2 and 1.0.0. Both of them exit with exception
> like the above.
> Can anyone help me on this?
>
> Thanks!!
>
> Sheng



-- 
Harsh J

Mime
View raw message