Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4345

Avoid NoSunchMethodException caused by shaded zookeeper jar

    XMLWordPrintableJSON

Details

    Description

      in OS Flink, flink relocate zk to org.apache.flink.shaded.zookeeper3.org.apache.zookeeper.*

      https://github.com/apache/flink-shaded/blob/82f8bb3324864491dc62c4d3e27f1c1ccc49ac84/flink-shaded-zookeeper-parent/pom.xml#L68

      the maven-shade-plugin changes all 'org.apache.zookeeper' to 'org.apache.flink.shaded.zookeeper3.org.apache.zookeeper'

      if JVM has -Dzookeeper.clientCnxnSocket=org.apache.zookeeper.*, and in shaded zk jar, will get NoSunchMethodException

       

      code: https://github.com/apache/zookeeper/blob/9a5da5f9a023e53bf339748b5b7b17278ae36475/zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java#L3029

      Attachments

        Activity

          People

            Unassigned Unassigned
            Bo Cui Bo Cui
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 2h 50m
                2h 50m