Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3758 Flink Cube Build Engine
  3. KYLIN-4050

Fix a CLI option parse error for FlinkMergingDictionary and some little code refactor

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v3.1.0
    • Flink Engine
    • None

    Description

      org.apache.flink.client.program.ProgramInvocationException: The main method caused an error.
      at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:546)
      at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:421)
      at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:427)
      at org.apache.flink.client.cli.CliFrontend.executeProgram(CliFrontend.java:813)
      at org.apache.flink.client.cli.CliFrontend.runProgram(CliFrontend.java:287)
      at org.apache.flink.client.cli.CliFrontend.run(CliFrontend.java:213)
      at org.apache.flink.client.cli.CliFrontend.parseParameters(CliFrontend.java:1050)
      at org.apache.flink.client.cli.CliFrontend.lambda$main$11(CliFrontend.java:1126)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:422)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1692)
      at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
      at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1126)
      Caused by: java.lang.RuntimeException: error parsing args
      at org.apache.kylin.common.util.AbstractApplication.execute(AbstractApplication.java:40)
      at org.apache.kylin.common.util.FlinkEntry.main(FlinkEntry.java:46)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:529)
      ... 12 more
      Caused by: org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -enableObjectReuse
      at org.apache.commons.cli.Parser.processOption(Parser.java:383)
      at org.apache.commons.cli.Parser.parse(Parser.java:210)
      at org.apache.commons.cli.Parser.parse(Parser.java:88)
      at org.apache.kylin.common.util.OptionsHelper.parseOptions(OptionsHelper.java:38)
      at org.apache.kylin.common.util.AbstractApplication.execute(AbstractApplication.java:36)
      ... 18 more
      

      Attachments

        Issue Links

          Activity

            People

              yanghua vinoyang
              yanghua vinoyang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: