You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "hqisog (via GitHub)" <gi...@apache.org> on 2023/04/28 03:26:24 UTC

[GitHub] [incubator-streampark] hqisog opened a new issue, #2710: [Bug] In kubernetes_native_session mode, When creating Flink cluster, there is an error

hqisog opened a new issue, #2710:
URL: https://github.com/apache/incubator-streampark/issues/2710

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-streampark/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### Java Version
   
   jdk1.8
   
   ### Scala Version
   
   2.12.x
   
   ### StreamPark Version
   
   2.1.0
   
   ### Flink Version
   
   1.15.3
   
   ### deploy mode
   
   kubernetes-session
   
   ### What happened
   
   <img width="1126" alt="企业微信截图_951b8187-c090-452b-ab7b-452e75b8c64c" src="https://user-images.githubusercontent.com/19682080/235046170-5cbe236e-8142-4d01-9f69-4cb91bfc3d6d.png">
   
   ![启动2](https://user-images.githubusercontent.com/19682080/235046567-ce50b253-dc84-47a9-ab20-3095ca2227cb.png)
   
   ![企业微信截图_5affbd48-a1ff-4d81-9d96-fd6639a2086f](https://user-images.githubusercontent.com/19682080/235046981-b5fd5d9b-bdef-4e3e-a11f-15057bea4d4c.png)
   
   
   使用平台的按钮添加报错,但是可以通过postman 调用api 创建集群
   
   
   ### Error Exception
   
   ```log
   Caused by: org.apache.flink.client.deployment.ClusterDeploymentException: Could not create Kubernetes cluster "28057eec-e099-4e02-8ef8-f5466941a0f9".
   	at org.apache.flink.kubernetes.KubernetesClusterDescriptor.deployClusterInternal(KubernetesClusterDescriptor.java:292)
   	at org.apache.flink.kubernetes.KubernetesClusterDescriptor.deploySessionCluster(KubernetesClusterDescriptor.java:161)
   	at org.apache.streampark.flink.client.impl.KubernetesNativeSessionClient$.deploy(KubernetesNativeSessionClient.scala:190)
   	at org.apache.streampark.flink.client.FlinkClientHandler$.deploy(FlinkClientHandler.scala:66)
   	at org.apache.streampark.flink.client.FlinkClientHandler.deploy(FlinkClientHandler.scala)
   	... 15 more
   Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://10.23.22.106:6443/api/v1/namespaces/flink/services. Message: Service "28057eec-e099-4e02-8ef8-f5466941a0f9" is invalid: metadata.name: Invalid value: "28057eec-e099-4e02-8ef8-f5466941a0f9": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name',  or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?'). Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=metadata.name, message=Invalid value: "28057eec-e099-4e02-8ef8-f5466941a0f9": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name',  or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?'), reason=FieldValueInvalid, additionalPrope
 rties={})], group=null, kind=Service, name=28057eec-e099-4e02-8ef8-f5466941a0f9, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Service "28057eec-e099-4e02-8ef8-f5466941a0f9" is invalid: metadata.name: Invalid value: "28057eec-e099-4e02-8ef8-f5466941a0f9": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name',  or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?'), metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
   	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:673)
   	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:612)
   	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:560)
   	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:521)
   	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleCreate(OperationSupport.java:309)
   ```
   
   
   ### Screenshots
   
   ![企业微信截图_5affbd48-a1ff-4d81-9d96-fd6639a2086f](https://user-images.githubusercontent.com/19682080/235047282-b2609d20-6188-4a79-acd9-f8292ce9e13f.png)
   
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!(您是否要贡献这个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: issues-unsubscribe@streampark.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org