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)

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: HA branch (HDFS-1623)
    • Fix Version/s: None
    • Component/s: ha, namenode
    • Labels:
      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. core-site.xml
          1 kB
          Brahma Reddy Battula
        2. hdfs-site.xml
          2 kB
          Brahma Reddy Battula

          Activity

            People

            • Assignee:
              umamaheswararao Uma Maheswara Rao G
              Reporter:
              brahmareddy Brahma Reddy Battula

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment