Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1623 High Availability Framework for HDFS NN
  3. HDFS-2940

HA: NullPointerException while formatting NameNode(After Configuring HA)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • HA branch (HDFS-1623)
    • None
    • ha, namenode
    • None

    Description

      Scenario:
      =========

      Step 1: I configured all Ha related configurations

      Step 2 : I formatted NN using (./hdfs namenode -format) format command

      Please check following Trace:

      Formatting using clusterid: CID-26a49fe8-abed-4d80-b02d-eeceb86dbd53
      12/02/12 20:57:46 ERROR namenode.NameNode: Exception in namenode join
      java.lang.NullPointerException
      	at org.apache.hadoop.net.NetUtils.isLocalAddress(NetUtils.java:640)
      	at org.apache.hadoop.hdfs.DFSUtil$4.match(DFSUtil.java:115)
      	at org.apache.hadoop.hdfs.DFSUtil.getSuffixIDs(DFSUtil.java:934)
      	at org.apache.hadoop.hdfs.DFSUtil.getNameServiceId(DFSUtil.java:890)
      	at org.apache.hadoop.hdfs.DFSUtil.getNamenodeNameServiceId(DFSUtil.java:850)
      	at org.apache.hadoop.hdfs.server.namenode.FSImage.<init>(FSImage.java:129)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:689)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:817)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:894)
      12/02/12 20:57:46 INFO namenode.NameNode: SHUTDOWN_MSG: 
      /************************************************************
      SHUTDOWN_MSG: Shutting down NameNode at HOST-10-18-40-20/10.18.40.20
      
      

      Attachments

        1. hdfs-site.xml
          2 kB
          Brahma Reddy Battula
        2. core-site.xml
          1 kB
          Brahma Reddy Battula

        Activity

          People

            umamaheswararao Uma Maheswara Rao G
            brahmareddy Brahma Reddy Battula
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: