Hi everybody. I want to consider using Apache Fli...
# troubleshooting
m
Hi everybody. I want to consider using Apache Flink CDC that has Mysql as a Source and Paimon as a Sink. I wanted to deploy this on the Kubernetes Operator, but I noticed that it requires the Mini Cluster. I prefer not to use Mini Cluster for production. How do I change that? My next option is Amazon Managed Service for Apache Flink, but I don't know if people have successfully integrated that with Apache Flink CDC. Is there a way to change Apache Flink CDC to NOT use MiniCluster in the Kubernetes Operator? Does Apache Flink CDC work with Amazon Managed Service for Apache Flink? My alternative is integrate Debezium directly, with Apache Kafka, and Spark structred streaming with Paimon. I'd prefer to use Flink.
a
Hi, what do you mean by Mini Cluster? Flink App Cluster ?
m
AI Answer to first question: The Flink MiniCluster is a lightweight, embedded Apache Flink cluster that runs within a single Java Virtual Machine (JVM). It is primarily designed for local execution of Flink jobs, making it an essential tool for integration testing, debugging, and small-scale data processing tasks. I would prefer to deploy this as a normal horizontally scalable job within the Flink Kubernetes Operator.
a
it is possible
m
1. I don't see any instruction on how to achieve that. I see this in the Kubernetes section: Flink CDC submits a job to a remote Flink cluster by default, you should start a Standalone Flink cluster in the pod by
--use-mini-cluster
in Operator mode.
Do you know where I can find an example of how to deploy Flink CDC to the Flink Kubernetes Operator without a mini-cluster?
a
I see what you mean. This is an example to run Flink CDC using Pipeline framework. No idea why MiniCluster is involved here. I would like to know as well. I would also try a JAR-based FlinkDeployment CR where inside my code I would construct Flink CDC pipeline. This should work for normal Flink Source from here: https://nightlies.apache.org/flink/flink-cdc-docs-master/docs/connectors/flink-sources/overview/
Copy code
- '--use-mini-cluster'
      - /opt/flink/flink-cdc-3.6-SNAPSHOT/conf/mysql-to-doris.yaml
    entryClass: org.apache.flink.cdc.cli.CliFrontend
I think this is just a way to launch CDC Pipeline via the CDC CLI, however I would expect it will use K8s as usually (JM + N TMs Pods)
m
but your example uses mini-cluster. Do you see the command line option your'e passing?
use-mini-cluster
. That is what I hope to avoid.
a
Have you tried to launch such an example?
m
I’m still working on the configuration, but I’m pretty close