Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-18527

Task Managers fail to start on HDP 2.6.5 due to commons-cli conflict

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 1.11.0
    • None
    • Build System

    Description

      When launching a new job in HDP 2.6.5, we are encountering these exceptions

       

      2020-07-08 16:10:36 E [default-dispatcher-4] [   o.a.f.y.YarnResourceManager] Could not start TaskManager in container container_xxx
      java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder(Ljava/lang/String;)Lorg/apache/commons/cli/Option$Builder;
            at org.apache.flink.runtime.entrypoint.parser.CommandLineOptions.<clinit>(CommandLineOptions.java:28) ~[flink-dist_2.12-1.11.0.jar:1.11.0]
      ....
      2020-07-08 16:12:46 E [default-dispatcher-4] [   o.a.f.y.YarnResourceManager] Could not start TaskManager in container container_xxx {} [] 
      java.lang.NoClassDefFoundError: Could not initialize class org.apache.flink.runtime.entrypoint.parser.CommandLineOptions
      
      
      

      We figure this is because HDP 2.6.5 is putting commons-cli version 1.2 on the class path, while Flink is expecting version 1.3. Maybe commons-cli should also be shaded to avoid such issue.

       

      Attachments

        Activity

          People

            rmetzger Robert Metzger
            kien_truong Truong Duc Kien
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: