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

`org.wildfly.openssl` should not be shaded by Hadoop build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.1
    • 3.4.0, 3.3.3
    • build
    • hadoop 3.3.1

      spark 3.2.1

      JDK8

    Description

      `org.wildfly.openssl` is a runtime library and its references are being shaded on Hadoop, breaking the integration with other frameworks like Spark, whenever the "fs.s3a.ssl.channel.mode" is set to "openssl". The error produced in this situation is:

      Suppressed: java.lang.NoClassDefFoundError: org/apache/hadoop/shaded/org/wildfly/openssl/OpenSSLProvider

      Whenever it tries to be instantiated from the `DelegatingSSLSocketFactory`. Spark tries to add it to its classpath without the shade, thus creating this issue.

      Dependencies which are not on "compile" scope should probably not be shaded to avoid this kind of integration issues.

       

      Attachments

        Issue Links

          Activity

            People

              andre.amorimfonseca@gmail.com André F.
              andre.amorimfonseca@gmail.com André F.
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1h 40m
                  1h 40m