Vijay Soni
01/28/2024, 1:05 PMCaused by: org.apache.flink.runtime.rest.util.RestClientException: [org.apache.flink.runtime.rest.handler.RestHandlerException: Cannot connect to ResourceManager right now. Please try to refresh.
kindly help to resolve this issue , i am not sure what i am missing.
operator is installed using below cmd :
helm repo add flink-operator-repo https://downloads.apache.org/flink/flink-kubernetes-operator-1.7.0/
helm install flink-kubernetes-operator flink-operator-repo/flink-kubernetes-operator --set webhook.create=false
below is the deployment yaml file
apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
metadata:
name: flink-example
spec:
image: flink_example_1.17:latest
flinkVersion: v1_17
mode: native
flinkConfiguration:
taskmanager.numberOfTaskSlots: "1"
serviceAccount: flink
jobManager:
resource:
memory: "2048m"
cpu: 1
taskManager:
resource:
memory: "2048m"
cpu: 1
job:
jarURI: local:///opt/flink/usrlib/test.jar
entryClass: com.example.testApp
parallelism: 3
upgradeMode: stateless