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

Using port 1023 should be valid when starting Secure DataNode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: security
    • Labels:
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: