Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6806

While running HADOOP "Exception in thread "main" java.lang.NullPointerException " occurs

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • CentOS 5.0

    Description

      hi,
      while installin hadoop ... i can do the following step
      "bin/hadoop namenode -format"...it got success
      After when i do
      "bin/start-all.sh"....the following error occurs........

      starting namenode, logging to /hadoop/hadoop/bin/../logs/hadoop-hadoop-namenode-localhost.localdomain.out
      localhost: ssh: localhost: Name or service not known
      hadoop@master's password:
      master: starting secondarynamenode, logging to /hadoop/hadoop/bin/../logs/hadoop-hadoop-secondarynamenode-localhost.localdomain.out
      master: Exception in thread "main" java.lang.NullPointerException
      master: at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:134)
      master: at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:156)
      master: at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:160)
      master: at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:131)
      master: at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:115)
      master: at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:469)
      starting jobtracker, logging to /hadoop/hadoop/bin/../logs/hadoop-hadoop-jobtracker-localhost.localdomain.out
      localhost: ssh: localhost: Name or service not known

      Pls help me to solve this........

      Also i did not configure

      "nano conf/core-site.xml"

      "nano conf/hdfs-site.xml"

      "nano conf/mapred-site.xml"

      Attachments

        Activity

          People

            Unassigned Unassigned
            girishniyer GIRISH N IYER
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: