Hi all, I am using the flink kubernetes operator a...
# troubleshooting
z
Hi all, I am using the flink kubernetes operator and when I deployed the FlinkSessionJob, some of the arguments to the main class specified in the spec.job.args were not passed to the main class and this caused the app to not start. Any ideas?
The FlinkSessionJob's manifest is as follows:
Copy code
apiVersion: flink.apache.org/v1beta1
kind: FlinkSessionJob
metadata:
  creationTimestamp: "2024-05-30T03:42:49Z"
  finalizers:
  - flinksessionjobs.flink.apache.org/finalizer
  generation: 1
  name: flinksessionjob
  namespace: flinksessionjob
  resourceVersion: "1000000000"
  uid: 4pa73bw3-f202-4822-et1b-7b6x6db1adb9
spec:
  deploymentName: flinkdeployment
  job:
    args:
    - --jobId UTE_RTM_METADATA
    - --add-opens java.base/java.lang.reflect=ALL-UNNAMED
    - --add-opens java.base/java.util.concurrent=ALL-UNNAMED
    - --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED
    - --add-opens java.base/java.util=ALL-UNNAMED
    - --add-opens java.base/jdk.internal.misc=ALL-UNNAMED
    jarURI: http://...
    parallelism: 1
    state: running
    upgradeMode: savepoint
  restartNonce: 8
status:
  error: '{"type":"org.apache.flink.kubernetes.operator.exception.ReconciliationException","message":"org.apache.flink.util.FlinkRuntimeException:
    java.util.concurrent.ExecutionException: org.apache.flink.runtime.rest.util.RestClientException:
    [org.apache.flink.runtime.rest.handler.RestHandlerException: Could not execute
    application...'
  jobStatus:
    savepointInfo:
      lastPeriodicSavepointTimestamp: 0
      savepointHistory: []
  lifecycleState: UPGRADING
  reconciliationStatus:
    lastReconciledSpec: '{"spec":{"job":{"jarURI":"http://...","parallelism":1,"entryClass":null,"args":["--jobId
      UTE_RTM_METADATA","--add-opens java.base/java.lang.reflect=ALL-UNNAMED","--add-opens
      java.base/java.util.concurrent=ALL-UNNAMED","--add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED","--add-opens
      java.base/java.util=ALL-UNNAMED","--add-opens java.base/jdk.internal.misc=ALL-UNNAMED"],"state":"suspended","savepointTriggerNonce":null,"initialSavepointPath":null,"upgradeMode":"stateless","allowNonRestoredState":null},"restartNonce":8,"flinkConfiguration":null,"deploymentName":"flinkdeployment"},"resource_metadata":{"apiVersion":"flink.apache.org/v1beta1","metadata":{"generation":1},"firstDeployment":true}}'
    reconciliationTimestamp: 1717043164439
    state: UPGRADING