You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/01/18 14:27:38 UTC

[GitHub] [incubator-seatunnel] yx91490 opened a new issue #1092: [Bug] [Core] fix variable substitution parameter bug in args parser

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


   ### 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
   
   `--variable` can only be specified once.
   This bug was introduced in #813 when change command line parser.
   
   ### SeaTunnel Version
   
   2.0.5
   
   ### SeaTunnel Config
   
   ```conf
   env {
     spark.app.name = "SeaTunnel"
     spark.executor.instances = 2
     spark.executor.cores = 1
     spark.executor.memory = "1g"
   }
   
   source {
     Fake {
       result_table_name = "my_dataset"
     }
   }
   
   transform {
      sql {
        sql = "select * from my_dataset where raw_message in ('"${name1}"', '"${name2}"')"
      }
   }
   
   sink {
     Console {}
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/start-seatunnel-spark.sh -c /tmp/spark.conf  -e client -m local -i name1="Hello" -i name2="World"
   ```
   
   
   ### Error Exception
   
   ```log
   Exception in thread "main" com.beust.jcommander.ParameterException: Can only specify option -i once.
   	at com.beust.jcommander.ParameterDescription.addValue(ParameterDescription.java:240)
   	at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:913)
   	at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:894)
   	at com.beust.jcommander.JCommander.parseValues(JCommander.java:724)
   	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.parseSparkArgs(CommandLineUtils.java:29)
   	at org.apache.seatunnel.SeatunnelSpark.main(SeatunnelSpark.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.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
   	at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:849)
   	at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:167)
   	at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:195)
   	at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
   	at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:924)
   	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:933)
   	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
   ```
   
   
   ### Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### 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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs closed issue #1092: [Bug] [Core] fix "Can only specify option -i once" in command line args parser

Posted by GitBox <gi...@apache.org>.
CalvinKirs closed issue #1092:
URL: https://github.com/apache/incubator-seatunnel/issues/1092


   


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org