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

Aaron Li updated BEAM-7179:
---------------------------
    Affects Version/s: 2.9.0
                       2.10.0
                       2.11.0
                       2.12.0

> Wrong file extension for DATAFLOW_GRAPH_FILE_NAME
> -------------------------------------------------
>
>                 Key: BEAM-7179
>                 URL: https://issues.apache.org/jira/browse/BEAM-7179
>             Project: Beam
>          Issue Type: Improvement
>          Components: beam-model
>    Affects Versions: 2.9.0, 2.10.0, 2.11.0, 2.12.0
>            Reporter: Aaron Li
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> DATAFLOW_GRAPH_FILE_NAME
> {code:java}
> String DATAFLOW_GRAPH_FILE_NAME = "dataflow_graph.pb"
> {code}
> 's file extension is set to .pb however it is indeed a .json. The content is 
> generated as
> {code:java}
> options
>   .getStager()
>   .stageToFile(
>       DataflowPipelineTranslator.jobToString(newJob).getBytes(UTF_8),
>       DATAFLOW_GRAPH_FILE_NAME);
> {code}
> While the actual proto
> {code:java}
> String PIPELINE_FILE_NAME = "pipeline.pb"
> {code}
> is generated as
> {code:java}
> options.getStager().stageToFile(serializedProtoPipeline, PIPELINE_FILE_NAME);
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to