beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmet Altay (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (BEAM-1801) default_job_name can generate names not accepted by DataFlow
Date Mon, 27 Mar 2017 22:33:41 GMT

     [ https://issues.apache.org/jira/browse/BEAM-1801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ahmet Altay resolved BEAM-1801.
-------------------------------
       Resolution: Fixed
    Fix Version/s: First stable release

> default_job_name can generate names not accepted by DataFlow
> ------------------------------------------------------------
>
>                 Key: BEAM-1801
>                 URL: https://issues.apache.org/jira/browse/BEAM-1801
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py
>            Reporter: Dennis Docter
>            Assignee: Pablo Estrada
>            Priority: Trivial
>             Fix For: First stable release
>
>
> The default job name generated by: 
> https://github.com/apache/beam/blob/master/sdks/python/apache_beam/runners/dataflow/internal/apiclient.py#L288
> is partially derived from the os username of the executing user. These may contain characters
not accepted by Dataflow, resulting in errors like:
> apache_beam.runners.dataflow.dataflow_runner.DataflowRuntimeException: Dataflow pipeline
failed. State: FAILED, Error:
> (a1b878f3562c0e6d): Error processing pipeline. Causes: (a1b878f3562c04ae): Prefix for
cluster 'beamapp-dennis.docter-032-03231324-1edc-harness' should match '[a-z]([-a-z0-9]{0,61}[a-z0-9])?'.
This probably means the joblabel is invalid.
> To solve this issue, sanitise the username to only container alphanumeric characters
and dashes.
> Also there seems to be no length restriction and dataflow imposes a 63 character length
limit in the above case. Limiting on length substantially shorter than that to allow for postfixes
(like -harness in this case) may be wise.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message