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

   ### 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
   
   config source、sink,and create cm, apply yaml, but node logs error.
   
   Error from server (BadRequest): container "flink-main-container" in pod 
"mongo2mongo-6bb74c9656-jrv4m" is waiting to start: ContainerCreating
   
   ### SeaTunnel Version
   
   2.3.3
   
   ### SeaTunnel Config
   
   ```conf
   mongo.conf
   env {
     execution.parallelism = 1
     job.mode = "BATCH"
   }
   
   source {
     MongoDB {
       uri = "mongodb://127.0.0.1:26001"
       database = "psdpdb"
       collection = "a"
       schema = {
         fields {
           fld0 = "INTEGER"
           fld1 = "STRING"
           fld2 = "STRING"
         }
       }
     }
   }
   
   sink {
     MongoDB{
       uri = "mongodb://127.0.0.1:26002"
       database = "test"
       collection = "test"
       schema = {
         fields {
           fld0 = "INTEGER"
           fld1 = "STRING"
           fld2 = "STRING"
         }
       }
     }
   }
   
   kubectl create cm mongo2mongo --from-file=mongo.conf=mongo.conf
   
   
   mongo-flink.yaml
   apiVersion: flink.apache.org/v1beta1
   kind: FlinkDeployment
   metadata:
     name: mongo2mongo
   spec:
     image: liguanfei/seatunnel:2.3.0-flink-1.13
     flinkVersion: v1_13
     flinkConfiguration:
       taskmanager.numberOfTaskSlots: "2"
     serviceAccount: flink
     jobManager:
       replicas: 1
       resource:
         memory: "1024m"
         cpu: 1
     taskManager:
       resource:
         memory: "1024m"
         cpu: 1
     podTemplate:
       spec:
         containers:
           - name: flink-main-container
             volumeMounts:
               - name: mongo2mongo
                 mountPath: /data/mongo.conf
                 subPath: mongo.conf
         volumes:
           - name: mongo2mongo
             configMap:
               name: mongo2mongo
               items:
               - key: mongo.conf
                 path: mongo.conf
     job:
       jarURI: local:///opt/seatunnel/starter/seatunnel-flink-13-starter.jar
       entryClass: org.apache.seatunnel.core.starter.flink.SeaTunnelFlink
       args: ["--config", "/data/mongo.conf"]
       parallelism: 2
       upgradeMode: stateless
   
   kubectl apply -f mongo-flink.yaml
   ```
   
   
   ### Running Command
   
   ```shell
   kubectl create cm mongo2mongo --from-file=mongo.conf=mongo.conf
   
   kubectl apply -f mongo-flink.yaml
   ```
   
   
   ### Error Exception
   
   ```log
   Error from server (BadRequest): container "flink-main-container" in pod 
"mongo2mongo-6bb74c9656-jrv4m" is waiting to start: ContainerCreating
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   flink:1.13
   
   ### 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