Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4295

Using port 1023 should be valid when starting Secure DataNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.3-alpha
    • security
    • Reviewed

    Description

      In SecureDataNodeStarter:

      if ((ss.getLocalPort() >= 1023 || listener.getPort() >= 1023) &&
              UserGroupInformation.isSecurityEnabled()) {
            throw new RuntimeException("Cannot start secure datanode with unprivileged ports");
      }
      

      This prohibits using port 1023, but this should be okay because only root can listen to ports below 1024.

      We can change the >= to >.

      Attachments

        1. HDFS-4295.patch
          1 kB
          Stephen Chu

        Activity

          People

            schu Stephen Chu
            schu Stephen Chu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: