Google cloud dataflow 如何命名云数据流管道中的MapElements步骤
下面,我可以使用Google cloud dataflow 如何命名云数据流管道中的MapElements步骤,google-cloud-dataflow,Google Cloud Dataflow,下面,我可以使用ParDo.named命名Google云数据流管道的每个步骤: PCollection<Integer> wordLengths = words.apply( ParDo .named("ComputeWordLengths") // the transform name .of(new DoFn<String, Integer>() { @Override public void processElemen
ParDo.named
命名Google云数据流管道的每个步骤:
PCollection<Integer> wordLengths = words.apply(
ParDo
.named("ComputeWordLengths") // the transform name
.of(new DoFn<String, Integer>() {
@Override
public void processElement(ProcessContext c) {
c.output(c.element().length());
}
}));
如何命名此MapElements
步骤
我有几个MapElements
步骤,我遇到如下错误:
Mar 01, 2016 1:36:39 PM com.google.cloud.dataflow.sdk.Pipeline applyInternal
WARNING: Transform MapElements2 does not have a stable unique name. This will prevent updating of pipelines.
可以在应用名称时指定名称。例如:
words.apply("name", MapElements.via(...))
// instead of
words.apply(MapElements.via(...))
有关更多详细信息,请参阅上的JavaDoc。您可以在应用时指定名称。例如:
words.apply("name", MapElements.via(...))
// instead of
words.apply(MapElements.via(...))
有关更多详细信息,请参阅上的JavaDoc