Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14969

Improve diagnostics in secure DataNode startup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      When DN secure mode configuration is incorrect, it throws the following exception from Datanode#checkSecureConfig

        private static void checkSecureConfig(DNConf dnConf, Configuration conf,
            SecureResources resources) throws RuntimeException {
          if (!UserGroupInformation.isSecurityEnabled()) {
            return;
          }
      ...
          throw new RuntimeException("Cannot start secure DataNode without " +
            "configuring either privileged resources or SASL RPC data transfer " +
            "protection and SSL for HTTP.  Using privileged resources in " +
            "combination with SASL RPC data transfer protection is not supported.");
      

      The DN should print more useful diagnostics as to what exactly what went wrong.
      Also when starting secure DN with resources then the startup scripts should launch the SecureDataNodeStarter class. If no SASL is configured and SecureDataNodeStarter is not used, then we could mention that too.

      Attachments

        1. HADOOP-14969.006.patch
          4 kB
          Ajay Kumar
        2. HADOOP-14969.005.patch
          3 kB
          Ajay Kumar
        3. HADOOP-14969.004.patch
          3 kB
          Ajay Kumar
        4. HADOOP-14969.003.patch
          3 kB
          Ajay Kumar
        5. HADOOP-14969.002.patch
          3 kB
          Ajay Kumar
        6. HADOOP-14969.001.patch
          3 kB
          Ajay Kumar

        Activity

          People

            ajayydv Ajay Kumar
            ajayydv Ajay Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: