You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "fs3085 (via GitHub)" <gi...@apache.org> on 2023/03/31 07:22:56 UTC

[GitHub] [incubator-seatunnel] fs3085 opened a new issue, #4466: The flink engine source is mysqlcdc reporting an error

fs3085 opened a new issue, #4466:
URL: https://github.com/apache/incubator-seatunnel/issues/4466

   ### 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
   
   Using the mysqlcdc source to get the mysql data and use the flink engine to synchronize it to starRocks and report an error. Looking at the error log, it seems to be a class implementation problem.
   
   ### SeaTunnel Version
   
   2.3.1
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 2000
     execution.planner = blink
   }
   source {
     MySQL-CDC {
     debezium {
            snapshot.mode = "never"
            decimal.handling.mode = "double"
        }
       startup.mode = "initial"
       result_table_name = "mysqlcdc"
       server-id = 5656
       username = "BigData_canal"
       password = "TXojS3RaL8pwQqNs"
       table-names = ["finenter.writeoff_source"]
       base-url = "jdbc:mysql://192.168.240.123:8096/finenter"
     }
   }
   sink {
     StarRocks {
       nodeUrls = ["192.168.235.101:8030"]
       base-url = "jdbc:mysql://192.168.235.101:16033"
       username = ads_finenter_rd
       password = "d3673hl1"
       database = "ads_finenter"
       table = "writeoff_source_seatunnel"
       batch_max_rows = 10
       starrocks.config = {
         format = "JSON"
         strip_outer_array = true
       }
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/start-seatunnel-flink-15-connector-v2.sh --config config/example02.conf --deploy-mode run --target yarn-per-job
   ```
   
   
   ### Error Exception
   
   ```log
   (72ca47b062541de96307f1515ce18081) switched from RUNNING to FAILED with failure cause: java.lang.UnsupportedOperationException: Flink ParallelSource don't support sending SourceEvent. Please implement the `SupportCoordinate` marker interface on the SeaTunnel source.
   	at org.apache.seatunnel.translation.source.ParallelReaderContext.sendSourceEventToEnumerator(ParallelReaderContext.java:61)
   	at org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceReader.reportFinishedSnapshotSplitsIfNeed(IncrementalSourceReader.java:148)
   	at org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceReader.onSplitFinished(IncrementalSourceReader.java:133)
   	at org.apache.seatunnel.connectors.seatunnel.common.source.reader.SourceReaderBase.finishCurrentFetch(SourceReaderBase.java:204)
   	at org.apache.seatunnel.connectors.seatunnel.common.source.reader.SourceReaderBase.moveToNextSplit(SourceReaderBase.java:180)
   	at org.apache.seatunnel.connectors.seatunnel.common.source.reader.SourceReaderBase.getNextFetch(SourceReaderBase.java:161)
   	at org.apache.seatunnel.connectors.seatunnel.common.source.reader.SourceReaderBase.pollNext(SourceReaderBase.java:92)
   	at org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceReader.pollNext(IncrementalSourceReader.java:92)
   	at org.apache.seatunnel.connectors.seatunnel.common.source.reader.SourceReaderBase.pollNext(SourceReaderBase.java:112)
   	at org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceReader.pollNext(IncrementalSourceReader.java:92)
   	at org.apache.seatunnel.translation.source.ParallelSource.run(ParallelSource.java:136)
   	at org.apache.seatunnel.translation.flink.source.BaseSeaTunnelSourceFunction.run(BaseSeaTunnelSourceFunction.java:86)
   	at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:110)
   	at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:67)
   	at org.apache.flink.streaming.runtime.tasks.SourceStreamTask$LegacySourceFunctionThread.run(SourceStreamTask.java:332)
   ```
   
   
   ### Flink or Spark Version
   
   flink 1.15.2
   
   ### Java or Scala Version
   
   1.8
   
   ### 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] The flink engine source is mysqlcdc reporting an error [seatunnel]

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

   > > @fs3085 This problem can you solve it, I am ubuntu20 jdk1.8, seatunnel2.3.3, flink1.16, flink1.15 encountered the same problem
   > > hi, as far as I know,SeaTunnel 2.3.3 already supports Mysql CDC running in the flink engine
   
   hi @zhilinli123   i  have tested ,but this problem is still exist in  SeaTunnel 2.3.3 ,  can you give a  demo?  


-- 
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] The flink engine source is mysqlcdc reporting an error [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4466:
URL: https://github.com/apache/seatunnel/issues/4466#issuecomment-3100150243

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
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] fs3085 commented on issue #4466: The flink engine source is mysqlcdc reporting an error

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

   @zorrofox @EricJoy2048 


-- 
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] zorrofox commented on issue #4466: The flink engine source is mysqlcdc reporting an error

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

   As far as I know the MySQL CDC source only support SeaTunnel native engine.


-- 
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] EricJoy2048 commented on issue #4466: The flink engine source is mysqlcdc reporting an error

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

   > As far as I know the MySQL CDC source only support SeaTunnel native engine.
   
   Yes, you are right.


-- 
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] bestchinacoder commented on issue #4466: The flink engine source is mysqlcdc reporting an error

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

   > @zorrofox @EricJoy2048 Thank you for your answer,According to the prompt of the error log, Please implement the `SupportCoordinate` marker interface on the SeaTunnel source. Then I downloaded the source code, found the SeaTunnelSource interface through SeaTunnelFlink of the seatunnel-flink-15-starter module, implemented the SupportCoordinate interface according to the log information, ![image](https://user-images.githubusercontent.com/77048661/229444982-55d3e380-46fb-44d8-bc7b-f43c4514e702.png) and compiled Packaging, just use the compiled flink engine to execute. Then it can be executed successfully, but I have a question ![image](https://user-images.githubusercontent.com/77048661/229445695-e4d7a986-cf32-4c98-9654-d83e653833e7.png) There is a judgment here. It turned out that this interface was not implemented, and all of them would go else. Now that this interface is implemented, all of them will go above. ![image](https://user-images.githubusercontent.com/77048661/229445862
 -2ce7f048-346a-4427-be1b-a1db68d04f06.png) ![image](https://user-images.githubusercontent.com/77048661/229445923-dd9ed6b1-8498-4cff-8eba-a59e1c6bea2c.png) Is there any difference between these two? The judgment here is that the official has not yet made a fine-grained distinction?
   
   Your method does work, but it's not perfect. It can only fetch the data that is already in MySQL, the changed data cannot be synchronized.


-- 
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] The flink engine source is mysqlcdc reporting an error [seatunnel]

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

   > @fs3085 This problem can you solve it, I am ubuntu20 jdk1.8, seatunnel2.3.3, flink1.16, flink1.15 encountered the same problem
    hi, as far as I know,SeaTunnel 2.3.3 already supports Mysql CDC running in the flink engine
   
   


-- 
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] The flink engine source is mysqlcdc reporting an error [seatunnel]

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

   @fs3085 This problem can you solve it, I am ubuntu20 jdk1.8, seatunnel2.3.3, flink1.16, flink1.15 encountered the same problem


-- 
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] The flink engine source is mysqlcdc reporting an error [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4466: The flink engine source is mysqlcdc reporting an error
URL: https://github.com/apache/seatunnel/issues/4466


-- 
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] The flink engine source is mysqlcdc reporting an error [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4466:
URL: https://github.com/apache/seatunnel/issues/4466#issuecomment-3067450344

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


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