Uploaded image for project: 'Hadoop Distributed Data Store'
  1. Hadoop Distributed Data Store
  2. HDDS-1355

Only FQDN is accepted for OM rpc address in secure environment

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Target Version/s:

      Description

      While the scm address can be a host name (relative to the current search domain) if the om address is just a hostname and not a FQDN a NPE is thrown:

        10   │   OZONE-SITE.XML_ozone.om.address: "om-0.om"
        11   │   OZONE-SITE.XML_ozone.scm.client.address: "scm-0.scm"
        12   │   OZONE-SITE.XML_ozone.scm.names: "scm-0.scm"
      
      2019-03-29 14:37:52 ERROR OzoneManager:865 - Failed to start the OzoneManager.
      java.lang.NullPointerException
          at org.apache.hadoop.ozone.om.OzoneManager.getSCMSignedCert(OzoneManager.java:1372)
          at org.apache.hadoop.ozone.om.OzoneManager.initializeSecurity(OzoneManager.java:1018)
          at org.apache.hadoop.ozone.om.OzoneManager.omInit(OzoneManager.java:971)
          at org.apache.hadoop.ozone.om.OzoneManager.createOm(OzoneManager.java:928)
          at org.apache.hadoop.ozone.om.OzoneManager.main(OzoneManager.java:859)
      

      I don't know what is the right validation rule here, but I am pretty sure that NPE should be avoided and a meaningful error should be thrown. (and the behaviour should be the same for scm and om)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ajayydv Ajay Kumar
                Reporter:
                elek Marton Elek
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m