Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-11999

Ozone: Clarify startup error message of Datanode in case namenode is missing

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HDFS-7240
    • HDFS-7240
    • ozone
    • None
    • Reviewed

    Description

      Datanode is failing if namenode config setting is missing even for Ozone with a confusing error message:

      14:33:29.176 [main] ERROR o.a.h.hdfs.server.datanode.DataNode - Exception in secureMain
      java.io.IOException: No services to connect (NameNodes or SCM).
      	at org.apache.hadoop.hdfs.server.datanode.BlockPoolManager.refreshNamenodes(BlockPoolManager.java:168) ~[classes/:na]
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1440) [classes/:na]
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:510) [classes/:na]
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2802) [classes/:na]
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2705) [classes/:na]
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2752) [classes/:na]
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2896) [classes/:na]
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2920) [classes/:na]
      14:33:29.177 [main] INFO  org.apache.hadoop.util.ExitUtil - Exiting with status 1: java.io.IOException: No services to connect (NameNodes or SCM).
      

      Attachments

        1. HDFS-11999.patch
          1 kB
          Marton Elek
        2. HDFS-11999-HDFS-7240.001.patch
          1 kB
          Anu Engineer

        Activity

          People

            elek Marton Elek
            elek Marton Elek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: