2

I am trying to follow the hello-samza basic setup and cannot get past "Build a Samza Job Package". As I am running off of the latest I try running gradle as specified:

$ ./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.

Then I saw that the bootstrap actually runs that so I thought I could just move to the next step:

$ mvn clean package

Which, after a bunch of output, ultimately fails:

[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

I then ran it with the -X switch and see a bunch of these errors:

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.

I'm not sure how to proceed from here. I know I have managed to get previous versions to work for me. Is it possibly related to a difference between linux (my previous env) and OS X (my current env)?

4

2 回答 2

0

因此,感谢 dev@samza.apache.org 上一位非常乐于助人的用户,他指导我更仔细地查看 pom。我意识到分支“最新”指向 samza 版本 0.11,我显然无法访问。

然后我检查了 master 中的 pom,它指向的是 10.1 的当前稳定版本。通过回到主分支,我能够编译并继续前进。

于 2016-08-12T17:42:53.723 回答
0

谢谢 - 使用 0.10.1 也对我有用(在 Mac 15.6 上)。为了清楚起见,我pom.xml在构建目录 ( .../hello-samza) 中进行了如下更改:

146c146
<     <samza.version>0.11.0-SNAPSHOT</samza.version>
---
>     <samza.version>0.10.1</samza.version>
于 2016-08-23T01:27:58.047 回答