Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-4603

Writing to a new key failed when integrating with other components(HBase etc.) in SpringBoot project

    XMLWordPrintableJSON

Details

    Description

      1. in my biz project, it contain multi components, like: Apache Ozone(1.1.0), Apache HDFS(2.7.2), Apache HBase(1.2.1), Apache Elastic(7.6.0) etc.. we uploading & coping files with ofs api or native java api.
      2. these have different version of google guava, Apache Ozone dependency the guava with version 28.2, but other component, like Apache HBase which is dependency the guava with lower version(like 16.0.1). -- it has different guava version in Apache Ozone and others(like Apache HBase)
      3. in module hadoop-hdds-client(dependency guava version: 28.2), the  org.apache.hadoop.hdds.scm.XceiverClientRatis#sendRequestAsync(request) method contain param type com.google.common.base.Supplier in TracingUtil.executeInNewSpan() method which implement java.util.function.Supplier.
      4. in my biz project(dependency guava version: 16.0.1), the com.google.common.base.Supplier not implement java.util.function.Supplier, acturally, it's not impl java.util.function.Supplier neither when guava version less than 21.0.
      5. when uploading or coping file to a new key, it throw exception like: *org.apache.hadoop.hdds.scm.XceiverClientRatis does not implement the requested interface java.util.function.Supplier*.
      6. if I reimport com.google.common.base.Supplier to java.util.function.Supplier, it works well for me

       

       

       

      Attachments

        1. image-2020-12-16-16-36-47-901.png
          202 kB
          masstter
        2. image-2020-12-16-16-37-31-321.png
          202 kB
          masstter
        3. image-2020-12-16-16-38-53-607.png
          76 kB
          masstter
        4. image-2020-12-16-16-40-16-840.png
          73 kB
          masstter

        Issue Links

          Activity

            People

              masstter masstter
              masstter masstter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: