You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "2gamayibuxulong (via GitHub)" <gi...@apache.org> on 2023/08/25 08:10:18 UTC

[GitHub] [seatunnel] 2gamayibuxulong opened a new issue, #5377: [Bug] [SqlServer-CDC 2 mysql jdbc ] SQL SERVER CDC not worked

2gamayibuxulong opened a new issue, #5377:
URL: https://github.com/apache/seatunnel/issues/5377

   ### 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
   
   I use SQL SERVER CDC to sync SQL SERVER records to mysql,but not worked
   
   ### SeaTunnel Version
   
   2.3.2
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
   }
   
   source {
     SqlServer-CDC {
       username = "**"
       password = "***"
       database-names = ["a"]
       table-names = ["a.dbo.b"]
       base-url="jdbc:sqlserver://127.0.0.1:1443;DatabaseName=a"
     }
   }
   
   transform {
     FieldMapper {
       field_mapper = {
           id = id
           lastname = lastname
       }
     }
   }
   
   
   sink {
       jdbc {
           url = "jdbc:mysql://localhost:3306/demo"
           driver = "com.mysql.cj.jdbc.Driver"
           user = "root"
           password = "root"
           generate_sink_sql = true
           # You need to configure both database and table
           database = demo
           table = di_test
           primary_keys = ["id"]
       }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   I use org.apache.seatunnel.example.engine.SeaTunnelEngineExample main method to run my conf。
   ```
   
   
   ### Error Exception
   
   ```log
   i changed my data in sqlserver,but mysql data not changed
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   java version jdk-11.0.15
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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.apache.org

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


Re: [I] [Bug] [SqlServer-CDC 2 MYSQL JDBC CDC] SqlServer-CDC 2 MYSQL JDBC CDC not worked [seatunnel]

Posted by "2gamayibuxulong (via GitHub)" <gi...@apache.org>.
2gamayibuxulong closed issue #5377: [Bug] [SqlServer-CDC 2 MYSQL JDBC CDC] SqlServer-CDC 2 MYSQL JDBC CDC not worked
URL: https://github.com/apache/seatunnel/issues/5377


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


Re: [I] [Bug] [SqlServer-CDC 2 MYSQL JDBC CDC] SqlServer-CDC 2 MYSQL JDBC CDC not worked [seatunnel]

Posted by "2gamayibuxulong (via GitHub)" <gi...@apache.org>.
2gamayibuxulong commented on issue #5377:
URL: https://github.com/apache/seatunnel/issues/5377#issuecomment-1759004591

   I debug the org.apache.seatunnel.connectors.seatunnel.jdbc.sink.JdbcSinkWriter#write method,and no more SeaTunnelRow element consume from the Context since I changed my record in sqlserver.
   


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


Re: [I] [Bug] [SqlServer-CDC 2 MYSQL JDBC CDC] SqlServer-CDC 2 MYSQL JDBC CDC not worked [seatunnel]

Posted by "2gamayibuxulong (via GitHub)" <gi...@apache.org>.
2gamayibuxulong commented on issue #5377:
URL: https://github.com/apache/seatunnel/issues/5377#issuecomment-1759061850

   I also use check my table is is_tracked_by_cdc = 1
   
   ```code
   SELECT s.name AS Schema_Name, tb.name AS Table_Name
   , tb.object_id, tb.type, tb.type_desc, tb.is_tracked_by_cdc
   FROM sys.tables tb
   INNER JOIN sys.schemas s on s.schema_id = tb.schema_id
   WHERE tb.is_tracked_by_cdc = 1
   ```


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


Re: [I] [Bug] [SqlServer-CDC 2 MYSQL JDBC CDC] SqlServer-CDC 2 MYSQL JDBC CDC not worked [seatunnel]

Posted by "2gamayibuxulong (via GitHub)" <gi...@apache.org>.
2gamayibuxulong commented on issue #5377:
URL: https://github.com/apache/seatunnel/issues/5377#issuecomment-1759003004

   Thanks Reply,I referred to the reference document you provided,My focus is my sink compent is mysql cdc write,your reference is sqlserver-cdc to sqlserver jdbc write。In addition, since the first full synchronization was successful after startup, after the corresponding table record in the SqlServer database was modified, the corresponding record in the mysql database was not modified. This is my main confusion。


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


Re: [I] [Bug] [SqlServer-CDC 2 MYSQL JDBC CDC] SqlServer-CDC 2 MYSQL JDBC CDC not worked [seatunnel]

Posted by "2gamayibuxulong (via GitHub)" <gi...@apache.org>.
2gamayibuxulong commented on issue #5377:
URL: https://github.com/apache/seatunnel/issues/5377#issuecomment-1774332326

   sorry,I originally thought my SQL server Agent was running, but the true is not running,so CDC not work out。Thanks Reply again。


-- 
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] [seatunnel] hailin0 commented on issue #5377: [Bug] [SqlServer-CDC 2 MYSQL JDBC CDC] SqlServer-CDC 2 MYSQL JDBC CDC not worked

Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 commented on issue #5377:
URL: https://github.com/apache/seatunnel/issues/5377#issuecomment-1725738141

   and confirm whether you enable sqlserver-cdc


-- 
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] [seatunnel] hailin0 commented on issue #5377: [Bug] [SqlServer-CDC 2 MYSQL JDBC CDC] SqlServer-CDC 2 MYSQL JDBC CDC not worked

Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 commented on issue #5377:
URL: https://github.com/apache/seatunnel/issues/5377#issuecomment-1725731316

   you can using `console` as sink test sqlserver cdc reading records
   
   ```
   sink {
       console {}
   }
   ```


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


Re: [I] [Bug] [SqlServer-CDC 2 MYSQL JDBC CDC] SqlServer-CDC 2 MYSQL JDBC CDC not worked [seatunnel]

Posted by "2gamayibuxulong (via GitHub)" <gi...@apache.org>.
2gamayibuxulong commented on issue #5377:
URL: https://github.com/apache/seatunnel/issues/5377#issuecomment-1759057028

   I also test the  the reference document you provided, The same situation。No CDC effect


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