hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Kimball <aa...@cloudera.com>
Subject Re: Help in running hadoop from eclipse
Date Thu, 06 Aug 2009 17:52:31 GMT
May I ask why you're trying to run the NameNode in Eclipse? This is likely
going to cause you lots of classpath headaches. I think your current problem
is that it can't find its config files, so it's not able to read in the
strings for what addresses it should listen on.

If you want to see what's happening inside the namenode, I'd run
"bin/hadoop-daemon.sh start namenode" to start it, then fire up Eclipse and
attach the debugger externally. You can then point it at your copy of the
Hadoop source code so you can set breakpoints, trace, etc.

- A

On Wed, Aug 5, 2009 at 9:51 PM, ashish pareek <pareekash@gmail.com> wrote:

> Hi Everybody,
>
>                  I am trying to run hadoop from eclipse... but when i run
> NmaeNode.java as java appliaction i get following error..... Please help in
> getting rid of this problem.
>
>
>
> 2009-08-05 23:42:00,760 INFO  dfs.NameNode
> (StringUtils.java:startupShutdownMessage(464)) - STARTUP_MSG:
>
> /************************************************************
>
> STARTUP_MSG: Starting NameNode
>
> STARTUP_MSG:   host = datanode1/10.0.1.109
>
> STARTUP_MSG:   args = []
>
> STARTUP_MSG:   version = Unknown
>
> STARTUP_MSG:   build = Unknown -r Unknown; compiled by 'Unknown' on Unknown
>
> ************************************************************/
>
> 2009-08-05 23:42:00,806 ERROR dfs.NameNode (NameNode.java:main(843)) -
> java.lang.NullPointerException
>
>            at
> org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:130)
>
>            at org.apache.hadoop.dfs.NameNode.getAddress(NameNode.java:116)
>
>            at org.apache.hadoop.dfs.NameNode.initialize(NameNode.java:136)
>
>            at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:193)
>
>            at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:179)
>
>            at
> org.apache.hadoop.dfs.NameNode.createNameNode(NameNode.java:830)
>
>            at org.apache.hadoop.dfs.NameNode.main(NameNode.java:839)
>
>
>
> 2009-08-05 23:42:00,807 INFO  dfs.NameNode (StringUtils.java:run(479)) -
> SHUTDOWN_MSG:
>
> /************************************************************
>
> SHUTDOWN_MSG: Shutting down NameNode at datanode1/10.0.1.109
>
> ************************************************************/
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message