JesseAtSZ opened a new issue #1356:
URL: https://github.com/apache/incubator-seatunnel/issues/1356


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   I use my own compiled version,The size of the compiled jar package is about 
800m.
   
![image](https://user-images.githubusercontent.com/35264598/156094355-1bf20a76-e48f-4c21-9165-60d4785fa09d.png)
   
   Then I unzipped and used the installation package,an error occurred while 
running.
   
   
   
   ### SeaTunnel Version
   
   Dev: 28e987539b9d38def39a061c5e229bd105e6ade1
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 1
   }
   
   source {
       FakeSourceStream {
         result_table_name = "fake"
         field_name = "name,age"
       }
   }
   
   transform {
       sql {
         sql = "select name,age from fake"
       }
   }
   
   sink {
     ConsoleSink {}
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./start-seatunnel-flink.sh -c ../config/flink.streaming.conf.template
   
   ./start-seatunnel-sql.sh -c ../config/flink.streaming.conf.template
   ```
   
   
   ### Error Exception
   
   ```log
   org.apache.flink.client.program.ProgramInvocationException: The main method 
caused an error: Was passed main parameter 
'/opt/module/apache-seatunnel-incubating-2.0.5-SNAPSHOT/lib/seatunnel-core-flink.jar'
 but no main parameter was defined in your arg class
        at 
org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:372)
        at 
org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:222)
        at 
org.apache.flink.client.ClientUtils.executeProgram(ClientUtils.java:114)
        at 
org.apache.flink.client.cli.CliFrontend.executeProgram(CliFrontend.java:812)
        at org.apache.flink.client.cli.CliFrontend.run(CliFrontend.java:246)
        at 
org.apache.flink.client.cli.CliFrontend.parseAndRun(CliFrontend.java:1054)
        at 
org.apache.flink.client.cli.CliFrontend.lambda$main$10(CliFrontend.java:1132)
        at 
org.apache.flink.runtime.security.contexts.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:28)
        at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1132)
   Caused by: com.beust.jcommander.ParameterException: Was passed main 
parameter 
'/opt/module/apache-seatunnel-incubating-2.0.5-SNAPSHOT/lib/seatunnel-core-flink.jar'
 but no main parameter was defined in your arg class
        at 
com.beust.jcommander.JCommander.initMainParameterValue(JCommander.java:954)
        at com.beust.jcommander.JCommander.parseValues(JCommander.java:755)
        at com.beust.jcommander.JCommander.parse(JCommander.java:356)
        at com.beust.jcommander.JCommander.parse(JCommander.java:335)
        at 
org.apache.seatunnel.config.command.CommandLineUtils.parseFlinkArgs(CommandLineUtils.java:46)
        at org.apache.seatunnel.SeatunnelFlink.main(SeatunnelFlink.java:28)
        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:355)
        ... 8 more
   ```
   
   
   ### Flink or Spark Version
   
   Flink:1.13.0
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   
![image](https://user-images.githubusercontent.com/35264598/156094202-2c6a46cc-d5f3-46c4-9061-ce0cc821dc55.png)
   
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to