在beam-release-2.16.0 中没有 gradlew [英] no gradlew in beam-release-2.16.0

查看:22
本文介绍了在beam-release-2.16.0 中没有 gradlew的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在遵循指南 beam spark runner,但我可以't 找到如何启动./gradlew build.beam-release-2.16.0/ 中没有 gradlew.所以我安装了 gradle 并在根目录中运行 gradle build .但我得到了错误

i'm following the guide beam spark runner , but i can't find how to launch./gradlew build. There is no gradlew in beam-release-2.16.0/. So i installed gradle and run gradle build in root dir. But i got error as

* Where: Build file '/home/jovyan/beam-release-2.16.0/buildSrc/build.gradle' line: 32

* What went wrong:
A problem occurred evaluating project ':buildSrc'.
> Could not find method content() for arguments [build_5yge7ru6ybndk8rv1kkefnd2y$_run_closure1$_closure6$_closure7@37c7dcf3] on object of type org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.

第 32 行的内容:

maven {
    url "https://repo.spring.io/plugins-release/"
    content { includeGroup "io.spring.gradle" }
  }

我不知道如何构建 apache_beam,任何可以提供一些想法的人都会有所帮助,非常感谢

i have no idea on how to build apache_beam, anyone who can offer some idea will be helpful, thanks a lot

推荐答案

如果您从 许可原因.在我看来,光束火花转轮指南中的一些假设使其难以遵循.

The ./gradlew build tool is omitted if you downloaded from the official source code release for licensing reasons. In my opinion, there's some assumptions in the beam spark runner guide that make it difficult to follow.

如果您想构建新的 Beam 工件,最好从 github 仓库,其中 ./gradlew 存在.

If you want to build new Beam artifacts, you're probably better off getting the source from the github repository, where the ./gradlew exists.

当然,如果您只想获得 Beam 2.16.0 工件,那么发布的 maven 或 pypi 工件可能会更好地为您服务.

Of course, if you just want to obtain the Beam 2.16.0 artifacts, you're probably better served by the published maven or pypi artifacts.

如果您有在 Beam 2.16.0 代码上使用 ./gradlew 的特定原因,您仍然可能会更好地使用 上的 github 存储库v2.16.0 标签.

If you have a specific reason for using ./gradlew on Beam 2.16.0 code, you still might be better off using the github repository on the v2.16.0 tag.

(例如,该指南描述了通过运行 ./gradlew :runners:spark:job-server:runShadow 来运行 JobService 端点.此服务以一种非常特定的方式用于运行交叉Spark 中的语言管道.如果您只使用 Spark 和 Beam Java SDK,指南中的传统"说明将使您无需 gradle 包装器即可运行.)

(For example, the guide describes running the JobService endpoint by running ./gradlew :runners:spark:job-server:runShadow. This service is used in a very specific way for running cross-language pipelines in Spark. If you are using just Spark and the Beam Java SDK, the "Legacy" instructions in the guide will get you running without requiring the gradle wrapper.)

这篇关于在beam-release-2.16.0 中没有 gradlew的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆