Hi George, You're probably missing a handful of Java properties. One way to figure out which is to run it on the commandline, look at the commandline with ps (you'll want the -ww flag to see the entire thing), and adjust your Eclipse launch appropriately.
You could also try to patch in https://issues.apache.org/jira/browse/HADOOP-5911 . That's got .launch files for NameNode, DataNode, JobTracker, and TaskTracker that work for me, as well as one that I clone for running a given test. If those work for you, please do leave a note on the ticket. -- Philip On Sun, Jun 14, 2009 at 10:31 AM, George Kovoor <kovoor.geo...@googlemail.com> wrote: > > Hi, > I would like know how to run hadoop in standalone mode within eclipse, I am > able to run it from outside eclipse, using > /bin/hadoop <fully qualified classname> <args> > From within eclipse I keep getting the following errors even after setting > the working directory to the root install path > > log4j:WARN No appenders could be found for logger > (org.apache.hadoop.conf.Configuration). > log4j:WARN Please initialize the log4j system properly. > Exception in thread "main" java.lang.NullPointerException > at > org.apache.hadoop.conf.Configuration.getLocalPath(Configuration.java:788) > at org.apache.hadoop.mapred.JobConf.getLocalPath(JobConf.java:232) > at > org.apache.hadoop.mapred.LocalJobRunner$Job.<init>(LocalJobRunner.java:83) > at > org.apache.hadoop.mapred.LocalJobRunner.submitJob(LocalJobRunner.java:306) > at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:843) > at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1142) > at org.apache.hadoop.examples.WordCount.run(WordCount.java:154) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at org.apache.hadoop.examples.WordCount.main(WordCount.java:160) > > It is definitively a configuration error, I would like to know the conf > parameter that I need to include in the class file. > > Thanks > George.