giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Vitucci <nicola.vitu...@gmail.com>
Subject Compiling Giraph with Hadoop 2.5.1 & YARN
Date Tue, 30 Sep 2014 15:30:29 GMT
Hi all,

I've just tried compiling Giraph (from trunk and release-1.1) after
applying the GIRAPH-947 patch, but I am still unable to compile it
successfully. This is the command I use for compiling:

mvn package -DskipTests -Dhadoop.version=2.5.1 -Phadoop_yarn clean install

and this is the stack trace:

----------------------------

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-source-plugin:2.1.2:jar (attach-sources)
on project giraph-core: Error adding directory to source archive.
$HOME/giraph/giraph-core/target/munged/maven-shared-archive-resources
isn't a directory. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.apache.maven.plugins:maven-source-plugin:2.1.2:jar
(attach-sources) on project giraph-core: Error adding directory to
source archive.
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
        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:116)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        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:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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.plugin.MojoExecutionException: Error adding
directory to source archive.
        at
org.apache.maven.plugin.source.AbstractSourceJarMojo.addDirectory(AbstractSourceJarMojo.java:410)
        at
org.apache.maven.plugin.source.AbstractSourceJarMojo.createArchiver(AbstractSourceJarMojo.java:392)
        at
org.apache.maven.plugin.source.AbstractSourceJarMojo.packageSources(AbstractSourceJarMojo.java:248)
        at
org.apache.maven.plugin.source.AbstractSourceJarMojo.packageSources(AbstractSourceJarMojo.java:232)
        at
org.apache.maven.plugin.source.AbstractSourceJarMojo.execute(AbstractSourceJarMojo.java:201)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
Caused by: org.codehaus.plexus.archiver.ArchiverException:
$HOME/giraph/giraph-core/target/munged/maven-shared-archive-resources
isn't a directory.
        at
org.codehaus.plexus.archiver.AbstractArchiver.addFileSet(AbstractArchiver.java:258)
        at
org.codehaus.plexus.archiver.AbstractArchiver.addDirectory(AbstractArchiver.java:244)
        at
org.codehaus.plexus.archiver.AbstractArchiver.addDirectory(AbstractArchiver.java:232)
        at
org.apache.maven.plugin.source.AbstractSourceJarMojo.addDirectory(AbstractSourceJarMojo.java:406)
        ... 25 more
[ERROR]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :giraph-core

----------------------------

Any idea why it is failing? My impression is that there is a problem
with the folders, because I can find
$HOME/giraph/giraph-core/target/munged/munged/maven-shared-archive-resources
(note how 'munged' is repeated) but not
$HOME/giraph/giraph-core/target/munged/maven-shared-archive-resources.

Thank you,

Nicola

Mime
View raw message