无法执行目标maven maven antrun-plugin:1.7 on hadoop hdfs项目:围绕ant部分的ant构建异常hadoop hdfs项目hadoop hdfs:?

0dxa2lsx  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(346)

我试图在Windows10家庭版的开发计算机上构建以下hadoop版本
hadoop-2.7.3-src
以下是有关我的本地开发环境的详细信息:
-windows 10家庭版
-英特尔酷睿i5-6200u cpu@2.30ghz
-内存16 gb
-64位操作系统,基于x64的处理器
-microsoft visual studio community 2015版本14.0.25431.01更新3
-.net framework 4.6.01586
-cmake版本3.7.2
-赛文nt-10.0 LTPBCV822.7.0(0.306/5/3)2017-02-12 13:18 x86\u 64赛文
-java版本“1.8.0\u 121”
-java(tm)se运行时环境(build 1.8.0\u 121-b13)
-java hotspot(tm)64位服务器vm(内部版本25.121-b13,混合模式)
-apache maven 3.3.9(bb52d8502b132ec0a5a3f4c09453c0747832dc5;2015-11-10t11:41:47-05:00)
-google协议缓冲区协议libprotoc2.5.0版
我打开了visual studio 2015(vs2015)的开发人员命令提示符
c:\hadoop\hadoop-2.7.3-src>mvn包-pdist,本机win-dskiptests-dtar-x
不幸的是,我得到以下错误:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:27 min
[INFO] Finished at: 2017-03-15T19:26:50-04:00
[INFO] Final Memory: 102M/1591M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (make) on project hadoop-hdfs: An Ant BuildException has occured: exec returned: 1
[ERROR] around Ant part ...<exec failonerror="true" dir="C:\hadoop\hadoop-2.7.3-src\hadoop-hdfs-project\hadoop-hdfs\target/native" executable="cmake">... @ 8:126 in C:\hadoop\hadoop-2.7.3-src\hadoop-hdfs-project\hadoop-hdfs\target\antrun\build-main.xml
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (make) on project hadoop-hdfs: An Ant BuildException has occured: exec returned: 1
around Ant part ...<exec failonerror="true" dir="C:\hadoop\hadoop-2.7.3-src\hadoop-hdfs-project\hadoop-hdfs\target/native" executable="cmake">... @ 8:126 in C:\hadoop\hadoop-2.7.3-src\hadoop-hdfs-project\hadoop-hdfs\target\antrun\build-main.xml
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        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:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        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.plugin.MojoExecutionException: An Ant BuildException has occured: exec returned: 1
around Ant part ...<exec failonerror="true" dir="C:\hadoop\hadoop-2.7.3-src\hadoop-hdfs-project\hadoop-hdfs\target/native" executable="cmake">... @ 8:126 in C:\hadoop\hadoop-2.7.3-src\hadoop-hdfs-project\hadoop-hdfs\target\antrun\build-main.xml
        at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:355)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        ... 20 more
Caused by: C:\hadoop\hadoop-2.7.3-src\hadoop-hdfs-project\hadoop-hdfs\target\antrun\build-main.xml:8: exec returned: 1
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:327)
        ... 22 more
[ERROR]
[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 :hadoop-hdfs
s4n0splo

s4n0splo1#

我在centos 7.2上遇到了同样的错误,当时hadoop common正在构建,在我完成sudo yum-y安装zlib sudo yum-y安装zlib-devel之后就消失了
在hadoop管道模块中获得另一个之后,我执行了sudo yum-y install-y openssl-devel
我的身材也很好。
希望它有用。

相关问题