sandyustc commented on issue #6530:
URL: https://github.com/apache/seatunnel/issues/6530#issuecomment-2005932957

   > hi, when you use api to submit job, the config shoule be json format. can 
you provide the json config you posted, thx.
   
   @ liunaijie  thanks.
   
   
   {
        "env": {
                "parallelism": 4,
                "job.mode": "batch",
                "checkpoint.interval": 10000
        },
        "source": [{
                "jdbc": {
                        "url": "jdbc:oracle:thin:@*.*.*.*:1521:orcl",
                        "driver": "oracle.jdbc.OracleDriver",
                        "connection_check_timeout_sec": 100,
                        "user": "xtgg",
                        "password": "xtgg",
                        "query": "select * from  user",
                        "partition_column": "id",
                        "split.size": 10000
                }
        }],
        "sink": [{
                "jdbc": {
                        "url": "jdbc:postgresql://*.*.*.*:5432/testDb",
                        "driver": "org.postgresql.Driver",
                        "user": "test",
                        "password": "test",
                        "generate_sink_sql": true,
                        "database": "testDb",
                        "table": "public.user",
                        "schema_save_mode": "CREATE_SCHEMA_WHEN_NOT_EXIST",
                        "data_save_mode": "APPEND_DATA",
                        "primary_keys": "id"
   
                }
        }]
   }
   
   
   


-- 
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