beam-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manu Zhang <owenzhang1...@gmail.com>
Subject Re: Failed to run Wordcount example
Date Wed, 16 Aug 2017 15:04:40 GMT
I have seen the same error. There is a word-count-beam subproject under the
root from the first command. The project has a different version (0.1) than
its parent (2.0.0). It makes all beam dependencies to version 0.1. Once I
change the version to 2.0.0, the second command can run successfully.

I guess it's problematic to have a different child version than its parent
in maven, no?

Thanks,
Manu

On Wed, Aug 16, 2017 at 6:07 PM Vincent Wang <fvunicorn@gmail.com> wrote:

> Oh, that's weird.
> I just used a new environment and reproduced this problem. I checked the
> network and all the artifacts are correctly fetched except
> the beam-sdks-java-extensions-google-cloud-platform-core.
>
> I noticed maven is trying to resolve
> beam-sdks-java-extensions-google-cloud-platform-core-0.1.jar but
>
> https://repo.maven.apache.org/maven2/org/apache/beam/beam-sdks-java-extensions-google-cloud-platform-core/0.1/beam-sdks-java-extensions-google-cloud-platform-core-0.1.jar
does
> not exist.
>
> I'll have a deeper dig into it.
>
> Thanks,
> Huafeng
>
> Ismaël Mejía <iemejia@gmail.com>于2017年8月16日周三 下午4:29写道:
>
>> I just executed the same commands that you pasted in your email and it
>> worked for me, can you verify that you are not having network issues
>> while downloading the dependencies with maven ?
>>
>> On Wed, Aug 16, 2017 at 10:06 AM, Vincent Wang <fvunicorn@gmail.com>
>> wrote:
>> > Hi Ismaël,
>> >
>> >   I'm running the command
>> >
>> >  mvn archetype:generate \
>> >       -DarchetypeGroupId=org.apache.beam \
>> >       -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \
>> >       -DarchetypeVersion=2.0.0 \
>> >       -DgroupId=org.example \
>> >       -DartifactId=word-count-beam \
>> >       -Dversion="0.1" \
>> >       -Dpackage=org.apache.beam.examples \
>> >       -DinteractiveMode=false
>> >
>> > and
>> >
>> > mvn compile exec:java
>> -Dexec.mainClass=org.apache.beam.examples.WordCount \
>> >      -Dexec.args="--inputFile=pom.xml --output=counts" -Pdirect-runner
>> >
>> > just the way on the quick start page. It seems that the example somehow
>> > takes its own version as some beam dependency's version accidentally.
>> >
>> > BTW, I'm using the latest master branch.
>> >
>> > Thanks,
>> > Huafeng
>> >
>> >
>> > Ismaël Mejía <iemejia@gmail.com>于2017年8月16日周三 下午3:57写道:
>> >>
>> >> Hello,
>> >>
>> >> The error message shows that it is looking for the Beam 0.1 version
>> >> and that version does not exist in maven central.
>> >> You have to replace the version of Beam in the command you executed
>> >> with the latest version that means 2.0.0 at this moment and it should
>> >> work.
>> >>
>> >> Regards,
>> >> Ismaël
>> >>
>> >>
>> >> On Wed, Aug 16, 2017 at 8:21 AM, Vincent Wang <fvunicorn@gmail.com>
>> wrote:
>> >> > Hi guys,
>> >> >
>> >> >   I'm trying to run the wordcount example according to the quick
>> start
>> >> > but I
>> >> > got following error:
>> >> >
>> >> > [INFO]
>> >> >
>> ------------------------------------------------------------------------
>> >> > [INFO] Building word-count-beam 0.1
>> >> > [INFO]
>> >> >
>> ------------------------------------------------------------------------
>> >> > [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is
>> >> > missing, no dependency information available
>> >> > [WARNING] Failed to retrieve plugin descriptor for
>> >> > org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin
>> >> > org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies
>> could
>> >> > not
>> >> > be resolved: Failure to find
>> org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
>> >> > in
>> >> > https://repo.maven.apache.org/maven2 was cached in the local
>> repository,
>> >> > resolution will not be reattempted until the update interval of
>> central
>> >> > has
>> >> > elapsed or updates are forced
>> >> > [WARNING] The POM for org.apache.beam:beam-sdks-java-core:jar:0.1 is
>> >> > missing, no dependency information available
>> >> > [WARNING] The POM for
>> >> >
>> >> >
>> org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core:jar:0.1
>> >> > is missing, no dependency information available
>> >> > [WARNING] The POM for
>> >> > org.apache.beam:beam-sdks-java-extensions-protobuf:jar:0.1 is
>> missing,
>> >> > no
>> >> > dependency information available
>> >> > [INFO]
>> >> >
>> ------------------------------------------------------------------------
>> >> > [INFO] BUILD FAILURE
>> >> > [INFO]
>> >> >
>> ------------------------------------------------------------------------
>> >> > [INFO] Total time: 0.960 s
>> >> > [INFO] Finished at: 2017-08-16T14:14:42+08:00
>> >> > [INFO] Final Memory: 18M/309M
>> >> > [INFO]
>> >> >
>> ------------------------------------------------------------------------
>> >> > [ERROR] Failed to execute goal on project word-count-beam: Could not
>> >> > resolve
>> >> > dependencies for project org.example:word-count-beam:jar:0.1: The
>> >> > following
>> >> > artifacts could not be resolved:
>> >> >
>> >> >
>> org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core:jar:0.1,
>> >> > org.apache.beam:beam-sdks-java-extensions-protobuf:jar:0.1: Failure
>> to
>> >> > find
>> >> >
>> >> >
>> org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core:jar:0.1
>> >> > in https://repo.maven.apache.org/maven2 was cached in the local
>> >> > repository,
>> >> > resolution will not be reattempted until the update interval of
>> central
>> >> > has
>> >> > elapsed or updates are forced -> [Help 1]
>> >> >
>> >> >   Any idea?
>> >> >
>> >> > Thanks,
>> >> > Huafeng
>>
>

Mime
View raw message