[
https://issues.apache.org/jira/browse/BEAM-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luke Cwik resolved BEAM-7179.
-----------------------------
Resolution: Fixed
Fix Version/s: 2.13.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
> Assignee: Aaron Li
> Priority: Minor
> Fix For: 2.13.0
>
> Time Spent: 1h 20m
> 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)