<dependency>
<groupId>org.apache.beam</groupId>
<artifactId>
beam-sdks-java-io-google-cloud-platform
</artifactId>
<version>2.42.0</version>
</dependency>
读取谷歌云上的文件报错如下,添加上面的依赖可解决:
Exception in thread "main" org.apache.beam.sdk.Pipeline$PipelineExecutionException: java.lang.IllegalArgumentException: No filesystem found for scheme gs
at org.apache.beam.sdk.Pipeline.run(Pipeline.java:329)
at org.apache.beam.sdk.Pipeline.run(Pipeline.java:309)
at com.example.App2.main(App2.java:43)