Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2479

Flume sink should properly shade its dependencies that are incompatible with flume

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.8.0
    • flume-sink, integration
    • None

    Description

      The kudu-flume-sink depends on a different guava version than flume itself and in its current state it does not work with flume.

      Dependencies should be shaded and relocated

      currently the class extracted from the jar file does not use the shaded guava:

      javap -c org.apache.kudu.flume.sink.KuduSink |grep google
      
            21: invokestatic  #8                  // Method com/google/common/base/Preconditions.checkState:(ZLjava/lang/Object;)V
            18: invokestatic  #49                 // Method com/google/common/base/Preconditions.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
            40: invokestatic  #49                 // Method com/google/common/base/Preconditions.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
           139: invokevirtual #73                 // Method org/apache/flume/Context.getSubProperties:(Ljava/lang/String;)Lcom/google/common/collect/ImmutableMap;
      
      

      Attachments

        Activity

          People

            fszabo Ferenc Szabo
            fszabo Ferenc Szabo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: