Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # user - java.lang.NullPointerException when Cleaning up the staging area file


Copy link to this message
-
java.lang.NullPointerException when Cleaning up the staging area file
Nan Zhu 2010-10-04, 09:23
Hi, all

I just wanna running hadoop with pseudo-distributed model in my macbook with
OS x 10.6.4

I once downloaded a hadoop-0.20.2 while I can run it successfully, but for
the latest version of hadoop 0.21, although I can start all daemons of
hadoop, but when I submit a job, there are some errors

10/10/04 17:20:24 INFO mapreduce.JobSubmitter: Cleaning up the staging area
file:/tmp/hadoop/mapred/staging/zhunan1665817995/.staging/job_local_0001
java.lang.NullPointerException
    at
org.apache.hadoop.conf.Configuration.getLocalPath(Configuration.java:1221)
    at org.apache.hadoop.mapred.JobConf.getLocalPath(JobConf.java:501)
    at
org.apache.hadoop.mapred.LocalJobRunner$Job.<init>(LocalJobRunner.java:131)
    at
org.apache.hadoop.mapred.LocalJobRunner.submitJob(LocalJobRunner.java:592)
    at
org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:376)
    at org.apache.hadoop.mapreduce.Job$2.run(Job.java:1037)
    at org.apache.hadoop.mapreduce.Job$2.run(Job.java:1034)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1105)
    at org.apache.hadoop.mapreduce.Job.submit(Job.java:1034)
    at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1054)
    at org.apache.hadoop.examples.WordCount.main(WordCount.java:84)
    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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72)
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:144)
    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:68)
    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:192)

Is there anyone who met the same problem?

Thank you

Nan