Compilation of character search errors, including Pipeline, PCollection, PipelineOptions, etc.

Today, I get build breaks for existing code that was used to compile correctly, due to an error in defining many key classes in the Dataflow SDK for Java. For instance:

[ERROR] /tmp/first-dataflow/src/main/java/com/google/cloud/dataflow/examples/common/DataflowExampleUtils.java:[30,37] cannot find symbol
[ERROR] symbol:   class Pipeline
[ERROR] location: package com.google.cloud.dataflow.sdk

Have APIs changed?

+4
source share
1 answer

Existing Maven projects that use the previously recommended version range [1.0.0, 2.0.0] for the Google Cloud Dataflow SDK for Java may soon receive a new version 2.0.0-beta1 of this SDK. This new version has APIs that are not compatible with versions 1.x, so using this with existing code will cause such breaks.

, Maven pom.xml, , - 2.x, , [1.0.0, 1.99), :

<dependency>
  <groupId>com.google.cloud.dataflow</groupId>
  <artifactId>google-cloud-dataflow-java-sdk-all</artifactId>
  <version>[1.0.0,1.99)</version>
</dependency>

1.x( 1.9.0).

GitHub.

2.0.0-beta1, , API, . , API, .

+7

Source: https://habr.com/ru/post/1666301/


All Articles