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

Don't set the key password if there is a problem reading SSL configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.8.0, 2.7.3
    • None
    • None
    • None

    Description

      When launching MiniDFSCluster in a test, with "dfs.data.transfer.protection=integrity" and without specifying a ssl-server.xml, the code hangs on "builder.build()".

      This is because in HttpServer2, it is setting a null value on the SslSocketConnector:

      c.setKeyPassword(keyPassword);

      Instead, this call should be inside the "if (keystore != null) {" block. Once this is done the code exits as expected with an error.

      Attachments

        1. HADOOP-14388.patch
          0.9 kB
          Colm O hEigeartaigh

        Activity

          People

            coheigea Colm O hEigeartaigh
            coheigea Colm O hEigeartaigh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: