You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Boyu Zhang <bo...@gmail.com> on 2011/04/12 01:48:40 UTC

HOD exception: java.io.IOException: No valid local directories in property: mapred.local.dir

Hi All,

I was trying to run the program using HOD on a cluster, when I allocate
using 5 nodes, it runs fine, but when I allocate using 6 nodes, everytime I
tried to run a program, I get this error:

11/04/11 19:45:50 WARN conf.Configuration: DEPRECATED: hadoop-site.xml found
in the classpath. Usage of hadoop-site.xml is deprecated. Instead use
core-site.xml, mapred-site.xml and hdfs-site.xml to override properties of
core-default.xml, mapred-default.xml and hdfs-default.xml respectively
11/04/11 19:45:51 WARN mapred.JobClient: Use GenericOptionsParser for
parsing the arguments. Applications should implement Tool for the same.
11/04/11 19:45:51 INFO input.FileInputFormat: Total input paths to process :
1
Exception in thread "main" org.apache.hadoop.ipc.RemoteException:
java.io.IOException: No valid local directories in property:
mapred.local.dir
    at
org.apache.hadoop.conf.Configuration.getLocalPath(Configuration.java:891)
    at org.apache.hadoop.mapred.JobConf.getLocalPath(JobConf.java:280)
    at org.apache.hadoop.mapred.JobInProgress.<init>(JobInProgress.java:250)
    at org.apache.hadoop.mapred.JobInProgress.<init>(JobInProgress.java:234)
    at org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:2993)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)

    at org.apache.hadoop.ipc.Client.call(Client.java:740)
    at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
    at org.apache.hadoop.mapred.$Proxy0.submitJob(Unknown Source)
    at
org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:800)
    at org.apache.hadoop.mapreduce.Job.submit(Job.java:432)
    at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:447)
    at Driver.main(Driver.java:33)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:156)


Any suggestion is greatly appreciated! Thanks!

Boyu

Re: HOD exception: java.io.IOException: No valid local directories in property: mapred.local.dir

Posted by Boyu Zhang <bo...@gmail.com>.
Thanks a lot for the comments, but I set the mapred.local.dir to /tmp which
is a dir on every local machies.

Still I got the same error, and I use the same conf file, with 3 nodes (I
have this problem when use 4 nodes), I don't have the problem.

Any idea what  problem it may be? Thanks a lot. And I checked the /tmp dir
is there and rwx for all the users.

Thanks,
Boyu

On Tue, Apr 12, 2011 at 12:43 PM, Harsh J <ha...@cloudera.com> wrote:

> Hello Sridhar,
>
> The mapred.local.dir values are considered as local directories.
>
> On Tue, Apr 12, 2011 at 9:25 PM, sridhar basam <sr...@basam.org> wrote:
> > On Tue, Apr 12, 2011 at 11:49 AM, Steve Loughran <st...@apache.org>
> wrote:
> >
> >> The job tracker can't find any of the local filesystem directories
> listed
> >> in the mapred.local.dir property, either the conf file or the machine is
> >> misconfigured
> >>
> >
> > Is the mapred.local.dir a local directory or is it relative to the hdfs
> > filesystem?
> >
> >  Sridhar
> >
>
>
>
> --
> Harsh J
>

Re: HOD exception: java.io.IOException: No valid local directories in property: mapred.local.dir

Posted by Harsh J <ha...@cloudera.com>.
Hello Sridhar,

The mapred.local.dir values are considered as local directories.

On Tue, Apr 12, 2011 at 9:25 PM, sridhar basam <sr...@basam.org> wrote:
> On Tue, Apr 12, 2011 at 11:49 AM, Steve Loughran <st...@apache.org> wrote:
>
>> The job tracker can't find any of the local filesystem directories listed
>> in the mapred.local.dir property, either the conf file or the machine is
>> misconfigured
>>
>
> Is the mapred.local.dir a local directory or is it relative to the hdfs
> filesystem?
>
>  Sridhar
>



-- 
Harsh J

Re: HOD exception: java.io.IOException: No valid local directories in property: mapred.local.dir

Posted by sridhar basam <sr...@basam.org>.
On Tue, Apr 12, 2011 at 11:49 AM, Steve Loughran <st...@apache.org> wrote:

> The job tracker can't find any of the local filesystem directories listed
> in the mapred.local.dir property, either the conf file or the machine is
> misconfigured
>

Is the mapred.local.dir a local directory or is it relative to the hdfs
filesystem?

 Sridhar

Re: HOD exception: java.io.IOException: No valid local directories in property: mapred.local.dir

Posted by Steve Loughran <st...@apache.org>.
On 11/04/2011 16:48, Boyu Zhang wrote:
> Exception in thread "main" org.apache.hadoop.ipc.RemoteException:
> java.io.IOException: No valid local directories in property:
> mapred.local.dir

The job tracker can't find any of the local filesystem directories 
listed in the mapred.local.dir property, either the conf file or the 
machine is misconfigured