Quilian opened a new issue, #8771:
URL: https://github.com/apache/seatunnel/issues/8771

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   根据官网文档描述,Oracle-cdc配置了startup.mode = specific ,但是启动的时候报错:the value(SPECIFIC) 
must be one of the optionValues([INITIAL, LATEST])
   
   ### SeaTunnel Version
   
   2.3.9
   
   ### SeaTunnel Config
   
   ```conf
   env{
     execution.parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval =1000
   }
   source {
     Oracle-CDC {
         username = "xx"
         password = "xxx"
         database-names = ["db1"]
         schema-names = ["sc1"]
         table-names = ["db1.sc1.table1"]
         startup.mode = specific
         startup.specific-offset.file = "/OSdata/oradata_ncdb/db1/redo03.log"
         startup.specific-offset.pos = 14316
         connect.timeout.ms = 60000
         connect.max-retries = 5
         base-url = "jdbc:oracle:thin:@xx.xxx.xxx.xx:xxxx:db1"
       }
   }
   sink {
     Doris {
         fenodes = "xx.xxx.xx.xxx:xxxx"
         username = xxx
         password = "xxxxx"
         database = "xxx"
         #table = "xxxx"
         sink.enable-2pc = "false"
         sink.label-prefix = "xxx_111"
         sink.enable-delete = "true"
         doris.config = {
               format="json"
               read_json_by_line="true"
           }
       }
   }
   ```
   
   ### Running Command
   
   ```shell
   bin/seatunnel.sh -c xx.template -n jobname --async
   ```
   
   ### Error Exception
   
   ```log
   2025-02-20 15:05:13,055 ERROR [o.a.s.c.s.SeaTunnel           ] [main] - 
Exception 
StackTrace:org.apache.seatunnel.core.starter.exception.CommandExecuteException: 
SeaTunnel job executed failed
           at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:228)
           at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
           at 
org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
   Caused by: org.apache.seatunnel.api.table.factory.FactoryException: 
ErrorCode:[API-06], ErrorDescription:[Factory initialize failed] - Unable to 
create a source for identifier 'Oracle-CDC'.
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.restoreAndPrepareSource(FactoryUtil.java:119)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:68)
           at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:404)
           at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:236)
           at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:123)
           at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:191)
           at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:165)
           ... 2 more
   Caused by: 
org.apache.seatunnel.api.configuration.util.OptionValidationException: 
ErrorCode:[API-02], ErrorDescription:[Option item validate failed] - These 
options('startup.mode') are SingleChoiceOption, the value(SPECIFIC) must be one 
of the optionValues([INITIAL, LATEST]).
           at 
org.apache.seatunnel.api.configuration.util.ConfigValidator.validateSingleChoice(ConfigValidator.java:89)
           at 
org.apache.seatunnel.api.configuration.util.ConfigValidator.validate(ConfigValidator.java:64)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:129)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.restoreAndPrepareSource(FactoryUtil.java:91)
           ... 8 more
   ```
   
   ### Zeta or Flink or Spark Version
   
   zeta
   
   ### 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: [email protected]

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

Reply via email to