FAQ
I am having an issue starting a job on a hadoop pseudo cluster. I am getting an exception see below. I tried to override the mapred.local.dir with -D parameter and by passing a custom config as well

Here is the custom config declaration:

zeltoa01@hadoop01:~/dev/etl/Hadoop/ybhadoop$ cat etc/hadoop-cluster.xml
<?xml version="1.0"?>
<configuration>
<property>
<name>mapred.local.dir</name>
<value>${hadoop.tmp.dir}/mapred/local</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/hadoop-datastore</value>
<description>A base for other temporary directories.</description>
</property>


zeltoa01@hadoop01:~/dev/etl/Hadoop/ybhadoop$ hadoop jar ybhadoop.jar com.yellow
book.data.hadoop.jobs.ListingsJobStandAlone -Dmapred.local.dir=/home/zeltoa01/m
apred_dir/
09/09/23 15:17:08 INFO mapred.FileInputFormat: Total input paths to process : 1
Exception in thread "main" org.apache.hadoop.ipc.RemoteException: java.io.IOExce
ption: No valid local directories in property: mapred.local.dir
at org.apache.hadoop.conf.Configuration.getLocalPath(Configuration.java:
938)
at org.apache.hadoop.mapred.JobConf.getLocalPath(JobConf.java:279)
at org.apache.hadoop.mapred.JobInProgress.(JobInProgress.java:240)

at org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:3024)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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:739)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
at org.apache.hadoop.mapred.$Proxy1.submitJob(Unknown Source)
at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:8
41)
at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:771)
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1290)
at com.yellowbook.data.hadoop.jobs.ListingsJobStandAlone.run(Unknown Sou
rce)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at com.yellowbook.data.hadoop.jobs.ListingsJobStandAlone.main(Unknown So
urce)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:185)

Search Discussions

  • Zeltov, Alex (YBUSA-KOP) at Sep 23, 2009 at 8:33 pm
    I am having an issue starting a job on a hadoop pseudo cluster. I am getting an exception see below. I tried to override the mapred.local.dir with -D parameter and by passing a custom config as well

    Here is the custom config declaration:

    zeltoa01@hadoop01:~/dev/etl/Hadoop/ybhadoop$ cat etc/hadoop-cluster.xml
    <?xml version="1.0"?>
    <configuration>
    <property>
    <name>mapred.local.dir</name>
    <value>${hadoop.tmp.dir}/mapred/local</value>
    </property>
    <property>
    <name>hadoop.tmp.dir</name>
    <value>/opt/hadoop-datastore</value>
    <description>A base for other temporary directories.</description>
    </property>


    zeltoa01@hadoop01:~/dev/etl/Hadoop/ybhadoop$ hadoop jar ybhadoop.jar com.yellow
    book.data.hadoop.jobs.ListingsJobStandAlone -Dmapred.local.dir=/home/zeltoa01/m
    apred_dir/
    09/09/23 15:17:08 INFO mapred.FileInputFormat: Total input paths to process : 1
    Exception in thread "main" org.apache.hadoop.ipc.RemoteException: java.io.IOExce
    ption: No valid local directories in property: mapred.local.dir
    at org.apache.hadoop.conf.Configuration.getLocalPath(Configuration.java:
    938)
    at org.apache.hadoop.mapred.JobConf.getLocalPath(JobConf.java:279)
    at org.apache.hadoop.mapred.JobInProgress.(JobInProgress.java:240)

    at org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:3024)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.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:739)
    at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
    at org.apache.hadoop.mapred.$Proxy1.submitJob(Unknown Source)
    at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:8
    41)
    at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:771)
    at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1290)
    at com.yellowbook.data.hadoop.jobs.ListingsJobStandAlone.run(Unknown Sou
    rce)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at com.yellowbook.data.hadoop.jobs.ListingsJobStandAlone.main(Unknown So
    urce)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:185)

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-user @
categorieshadoop
postedSep 23, '09 at 7:39p
activeSep 23, '09 at 8:33p
posts2
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Zeltov, Alex (YBUSA-KOP): 2 posts

People

Translate

site design / logo © 2022 Grokbase