你好 samza 演示未编译
hello-samza demo not compiling
我正在尝试遵循 hello-samza 基本设置,无法通过 "Build a Samza Job Package"。因为我是 运行 最新的,所以我尝试 运行 gradle 指定的:
$ ./gradlew publishToMavenLocal
FAILURE: Build failed with an exception.
* What went wrong:
Task 'publishToMavenLocal' not found in root project 'hello-samza'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
然后我看到 bootstrap 实际上运行了,所以我想我可以进入下一步:
$ mvn clean package
经过一堆输出,最终失败:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.819 s
[INFO] Finished at: 2016-08-11T16:51:20-06:00
[INFO] Final Memory: 11M/151M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hello-samza: Could not resolve dependencies for project org.apache.samza:hello-samza:jar:0.11.0: Failed to collect dependencies at org.apache.samza:samza-api:jar:0.11.0-SNAPSHOT: Failed to read artifact descriptor for org.apache.samza:samza-api:jar:0.11.0-SNAPSHOT: Could not transfer artifact org.apache.samza:samza-api:pom:0.11.0-SNAPSHOT from/to scala-tools.org (https://oss.sonatype.org/content/groups/scala-tools): Access denied to: https://oss.sonatype.org/content/groups/scala-tools/org/apache/samza/samza-api/0.11.0-SNAPSHOT/samza-api-0.11.0-SNAPSHOT.pom , ReasonPhrase:Forbidden. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
然后我使用 -X 开关 运行 它并看到了一堆这样的错误:
org.eclipse.aether.transfer.MetadataTransferException: Could not transfer metadata org.apache.samza:samza-kafka_2.10:0.11.0-SNAPSHOT/maven-metadata.xml from/to scala-tools.org (https://oss.sonatype.org/content/groups/scala-tools): Access denied to: https://oss.sonatype.org/content/groups/scala-tools/org/apache/samza/samza-kafka_2.10/0.11.0-SNAPSHOT/maven-metadata.xml , ReasonPhrase:Forbidden.
我不确定如何从这里开始。我知道我已经设法让以前的版本为我工作。它可能与 linux (我以前的环境)和 OS X (我当前的环境)之间的差异有关吗?
因此,感谢 dev@samza.apache.org 上一位非常乐于助人的用户,他指导我更仔细地查看 pom.xml 文件。我意识到分支 "latest" 指向我显然无权访问的 samza 版本 0.11。
然后我检查了 master 中的 pom,它指向当前稳定版本 10.1。通过回到 master 分支,我能够编译并继续。
谢谢 - 使用 0.10.1 也对我有用(在 Mac 15.6 上)。
为了清楚起见,我在构建目录(.../hello-samza
)中更改了pom.xml
,如下所示:
146c146
< <samza.version>0.11.0-SNAPSHOT</samza.version>
---
> <samza.version>0.10.1</samza.version>
我正在尝试遵循 hello-samza 基本设置,无法通过 "Build a Samza Job Package"。因为我是 运行 最新的,所以我尝试 运行 gradle 指定的:
$ ./gradlew publishToMavenLocal
FAILURE: Build failed with an exception.
* What went wrong:
Task 'publishToMavenLocal' not found in root project 'hello-samza'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
然后我看到 bootstrap 实际上运行了,所以我想我可以进入下一步:
$ mvn clean package
经过一堆输出,最终失败:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.819 s
[INFO] Finished at: 2016-08-11T16:51:20-06:00
[INFO] Final Memory: 11M/151M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hello-samza: Could not resolve dependencies for project org.apache.samza:hello-samza:jar:0.11.0: Failed to collect dependencies at org.apache.samza:samza-api:jar:0.11.0-SNAPSHOT: Failed to read artifact descriptor for org.apache.samza:samza-api:jar:0.11.0-SNAPSHOT: Could not transfer artifact org.apache.samza:samza-api:pom:0.11.0-SNAPSHOT from/to scala-tools.org (https://oss.sonatype.org/content/groups/scala-tools): Access denied to: https://oss.sonatype.org/content/groups/scala-tools/org/apache/samza/samza-api/0.11.0-SNAPSHOT/samza-api-0.11.0-SNAPSHOT.pom , ReasonPhrase:Forbidden. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
然后我使用 -X 开关 运行 它并看到了一堆这样的错误:
org.eclipse.aether.transfer.MetadataTransferException: Could not transfer metadata org.apache.samza:samza-kafka_2.10:0.11.0-SNAPSHOT/maven-metadata.xml from/to scala-tools.org (https://oss.sonatype.org/content/groups/scala-tools): Access denied to: https://oss.sonatype.org/content/groups/scala-tools/org/apache/samza/samza-kafka_2.10/0.11.0-SNAPSHOT/maven-metadata.xml , ReasonPhrase:Forbidden.
我不确定如何从这里开始。我知道我已经设法让以前的版本为我工作。它可能与 linux (我以前的环境)和 OS X (我当前的环境)之间的差异有关吗?
因此,感谢 dev@samza.apache.org 上一位非常乐于助人的用户,他指导我更仔细地查看 pom.xml 文件。我意识到分支 "latest" 指向我显然无权访问的 samza 版本 0.11。
然后我检查了 master 中的 pom,它指向当前稳定版本 10.1。通过回到 master 分支,我能够编译并继续。
谢谢 - 使用 0.10.1 也对我有用(在 Mac 15.6 上)。
为了清楚起见,我在构建目录(.../hello-samza
)中更改了pom.xml
,如下所示:
146c146
< <samza.version>0.11.0-SNAPSHOT</samza.version>
---
> <samza.version>0.10.1</samza.version>