FAQ
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.(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

************************************************************/

Search Discussions

  • Aaron Kimball at Aug 6, 2009 at 5:53 pm
    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 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

    ************************************************************/
  • Ashish pareek at Aug 7, 2009 at 4:05 am
    Thanks to you Aaron, but whats the procedure for external debugging ? what
    project name should be specified ? and what more information i need to fill
    in remote debugging options

    Regards,
    Ashish.
    On Thu, Aug 6, 2009 at 11:22 PM, Aaron Kimball wrote:

    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 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

    ************************************************************/
  • Ashish pareek at Aug 7, 2009 at 4:23 pm
    Thanks Aron

    :)

    I got external debugging tool working with eclipse. But would
    like to know if I can debug entire Hadoop code instead of just NameNode and
    if yes how ?

    Thanks to you all

    Regards,
    Ashish
    On Fri, Aug 7, 2009 at 9:34 AM, ashish pareek wrote:

    Thanks to you Aaron, but whats the procedure for external debugging ? what
    project name should be specified ? and what more information i need to fill
    in remote debugging options

    Regards,
    Ashish.

    On Thu, Aug 6, 2009 at 11:22 PM, Aaron Kimball wrote:

    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

    ************************************************************/
  • Aaron Kimball at Aug 6, 2009 at 6:10 pm
    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 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

    ************************************************************/
  • 符小钻 at Aug 7, 2009 at 12:51 am
    thanx

    2009/8/7 Aaron Kimball <aaron@cloudera.com>
    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 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

    ************************************************************/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-user @
categorieshadoop
postedAug 6, '09 at 4:52a
activeAug 7, '09 at 4:23p
posts6
users3
websitehadoop.apache.org...
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase