Github user suryag10 commented on the issue:

    https://github.com/apache/spark/pull/22433
  
    > Does it fail in k8s or does spark k8s code error out ?
    > If former, why not fix “name” handling in k8s to replace unsupported 
characters ?
    
    Following is the error seen without the fix:
    Exception in thread "main" 
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST 
at: 
https://k8s-apiserver.bcmt.cluster.local:8443/api/v1/namespaces/default/pods. 
Message: Pod "thrift jdbc/odbc server-1537079590890-driver" is invalid: 
metadata.name: Invalid value: "thrift jdbc/odbc server-1537079590890-driver": a 
DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or 
'.', and must start and end with an alphanumeric character (e.g. 'example.com', 
regex used for validation is 
'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'). Received 
status: Status(apiVersion=v1, code=422, 
details=StatusDetails(causes=[StatusCause(field=metadata.name, message=Invalid 
value: "thrift jdbc/odbc server-1537079590890-driver": a DNS-1123 subdomain 
must consist of lower case alphanumeric characters, '-' or '.', and must start 
and end with an alphanumeric character (e.g. 'example.com', regex used for 
validation is '[a-z0-9]([-a-z0-9]*[a-z0-
 9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'), reason=FieldValueInvalid, 
additionalProperties={})], group=null, kind=Pod, name=thrift jdbc/odbc 
server-1537079590890-driver, retryAfterSeconds=null, uid=null, 
additionalProperties={}), kind=Status, message=Pod "thrift jdbc/odbc 
server-1537079590890-driver" is invalid: metadata.name: Invalid value: "thrift 
jdbc/odbc server-1537079590890-driver": a DNS-1123 subdomain must consist of 
lower case alphanumeric characters, '-' or '.', and must start and end with an 
alphanumeric character (e.g. 'example.com', regex used for validation is 
'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'), 
metadata=ListMeta(resourceVersion=null, selfLink=null, 
additionalProperties={}), reason=Invalid, status=Failure, 
additionalProperties={}).
    
    This is not specific to Kubernetes, but more of a generic DNS (DNS-1123)


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to