Building flink from source---error of resolving dependencies

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Building flink from source---error of resolving dependencies

syed
Hi;
I am trying to build Apache Flink from the source. I am strictly following
the instructions given @github flink page.  https://github.com/apache/flink 

I am facing the error for resolving the  dependencies for project
flink-mapr-fs. The details of error is as below;


[ERROR] Failed to execute goal on project flink-mapr-fs: Could not resolve
dependencies for project org.apache.flink:flink-mapr-fs:jar:1.9-SNAPSHOT:
Could not transfer artifact com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to
mapr-releases (http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed: Premature end of Content-Length delimited message body (expected:
49411916; received: 39845888 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal on project flink-mapr-fs: Could not resolve dependencies for project
org.apache.flink:flink-mapr-fs:jar:1.9-SNAPSHOT: Could not transfer artifact
com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to mapr-releases
(http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not
resolve dependencies for project
org.apache.flink:flink-mapr-fs:jar:1.9-SNAPSHOT: Could not transfer artifact
com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to mapr-releases
(http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
        ... 22 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException:
Could not transfer artifact com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to
mapr-releases (http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
        at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
        ... 23 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could
not transfer artifact com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to
mapr-releases (http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
        at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
        ... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not
transfer artifact com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to
mapr-releases (http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1016)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
        at
org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.maven.wagon.TransferFailedException: GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:349)
        at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:310)
        at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:287)
        at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:97)
        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:660)
        ... 4 more
Caused by:
org.apache.maven.wagon.providers.http.httpclient.ConnectionClosedException:
Premature end of Content-Length delimited message body (expected: 49411916;
received: 39845888
        at
org.apache.maven.wagon.providers.http.httpclient.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:184)
        at
org.apache.maven.wagon.providers.http.httpclient.conn.EofSensorInputStream.read(EofSensorInputStream.java:138)
        at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:493)
        at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:339)
        ... 9 more

Firstly, i tried using latest maven, and afterward, as per instruction at
the flink github page  https://github.com/apache/flink
<https://github.com/apache/flink>  , I also tried via maven 3.1.1, but the
same error.

Please guide me how to fix this issue.
Best Regards
Syed



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Building flink from source---error of resolving dependencies

Fabian Hueske-2
Hi Syed,

The build fails because Maven could not download the required dependency com.mapr.hadoop:maprfs:jar:5.2.1-mapr.
The dependency is hosted on MapR's Maven repository. Maybe the service was not available for some time.
I checked it right now and it seems to be working.

I'd suggest to try it again.

Best, Fabian

Am Do., 13. Juni 2019 um 09:47 Uhr schrieb syed <[hidden email]>:
Hi;
I am trying to build Apache Flink from the source. I am strictly following
the instructions given @github flink page.  https://github.com/apache/flink

I am facing the error for resolving the  dependencies for project
flink-mapr-fs. The details of error is as below;


[ERROR] Failed to execute goal on project flink-mapr-fs: Could not resolve
dependencies for project org.apache.flink:flink-mapr-fs:jar:1.9-SNAPSHOT:
Could not transfer artifact com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to
mapr-releases (http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed: Premature end of Content-Length delimited message body (expected:
49411916; received: 39845888 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal on project flink-mapr-fs: Could not resolve dependencies for project
org.apache.flink:flink-mapr-fs:jar:1.9-SNAPSHOT: Could not transfer artifact
com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to mapr-releases
(http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not
resolve dependencies for project
org.apache.flink:flink-mapr-fs:jar:1.9-SNAPSHOT: Could not transfer artifact
com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to mapr-releases
(http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
        ... 22 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException:
Could not transfer artifact com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to
mapr-releases (http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
        at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
        ... 23 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could
not transfer artifact com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to
mapr-releases (http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
        at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
        ... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not
transfer artifact com.mapr.hadoop:maprfs:jar:5.2.1-mapr from/to
mapr-releases (http://repository.mapr.com/maven/): GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1016)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
        at
org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.maven.wagon.TransferFailedException: GET request of:
com/mapr/hadoop/maprfs/5.2.1-mapr/maprfs-5.2.1-mapr.jar from mapr-releases
failed
        at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:349)
        at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:310)
        at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:287)
        at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:97)
        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:660)
        ... 4 more
Caused by:
org.apache.maven.wagon.providers.http.httpclient.ConnectionClosedException:
Premature end of Content-Length delimited message body (expected: 49411916;
received: 39845888
        at
org.apache.maven.wagon.providers.http.httpclient.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:184)
        at
org.apache.maven.wagon.providers.http.httpclient.conn.EofSensorInputStream.read(EofSensorInputStream.java:138)
        at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:493)
        at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:339)
        ... 9 more

Firstly, i tried using latest maven, and afterward, as per instruction at
the flink github page  https://github.com/apache/flink
<https://github.com/apache/flink>  , I also tried via maven 3.1.1, but the
same error.

Please guide me how to fix this issue.
Best Regards
Syed



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Building flink from source---error of resolving dependencies

syed
DeAR Fabian;

THANKS FOR YOUR ANSWER!

I tried to build the flink again, but after several tries I am still facing
the same error.
Is there any other alternative to resolve the dependencies to successfully
build the flink?

Kind Regards;
Syed



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/