7
回答
自己编译hadoop2.7.2报错;google大法也不好用了;求大神带我飞
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

找了好多资料都不知道怎么解决;真的是忧伤的问题

系统是centos6.8_x64;

Maven settings.xml配置:


<localRepository>/home/repo/maven/repository</localRepository>
 <profiles>
	<profile>
		<id>jdk17</id>
		<activation>
			<activeByDefault>true</activeByDefault>
			<jdk>1.7</jdk>
		</activation>
		<properties>
			<maven.compiler.source>1.7</maven.compiler.source>
			<maven.compiler.target>1.7</maven.compiler.target>
			<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
		</properties>
	</profile>
  </profiles>


系统环境变量配置:



export JAVA_HOME=/home/soft/jdk1.7.0_80
export PATH=$JAVA_HOME/bin:$PATH
export MAVEN_HOME=/home/soft/apache-maven-3.3.9
export MAVEN_OPTS="-Xms256m -Xmx512m"
export PATH=$MAVEN_HOME/bin:$PATH
export FINDBUGS_HOME=/home/soft/findbugs-3.0.1
export PATH=$FINDBUGS_HOME/bin:$PATH
export ANT_HOME=/home/soft/apache-ant-1.9.6
export PATH=$ANT_HOME/bin:$PATH


错误信息:

[10:08:21][INFO] ------------------------------------------------------------------------
[10:08:21][INFO] Reactor Summary:
[10:08:21][INFO] 
[10:08:21][INFO] Apache Hadoop Main ................................. SUCCESS [ 12.228 s]
[10:08:21][INFO] Apache Hadoop Project POM .......................... SUCCESS [  0.599 s]
[10:08:21][INFO] Apache Hadoop Annotations .......................... SUCCESS [  2.245 s]
[10:08:21][INFO] Apache Hadoop Assemblies ........................... SUCCESS [  0.502 s]
[10:08:21][INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [  2.894 s]
[10:08:21][INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [  1.569 s]
[10:08:21][INFO] Apache Hadoop MiniKDC .............................. SUCCESS [  1.761 s]
[10:08:21][INFO] Apache Hadoop Auth ................................. SUCCESS [ 13.727 s]
[10:08:21][INFO] Apache Hadoop Auth Examples ........................ SUCCESS [  2.166 s]
[10:08:21][INFO] Apache Hadoop Common ............................... SUCCESS [02:42 min]
[10:08:21][INFO] Apache Hadoop NFS .................................. SUCCESS [  3.816 s]
[10:08:21][INFO] Apache Hadoop KMS .................................. SUCCESS [ 12.253 s]
[10:08:21][INFO] Apache Hadoop Common Project ....................... SUCCESS [  0.062 s]
[10:08:21][INFO] Apache Hadoop HDFS ................................. FAILURE [01:53 min]
[10:08:21][INFO] Apache Hadoop HttpFS ............................... SKIPPED
[10:08:21][INFO] Apache Hadoop HDFS BookKeeper Journal .............. SKIPPED
[10:08:21][INFO] Apache Hadoop HDFS-NFS ............................. SKIPPED
[10:08:21][INFO] Apache Hadoop HDFS Project ......................... SKIPPED
[10:08:21][INFO] hadoop-yarn ........................................ SKIPPED
[10:08:21][INFO] hadoop-yarn-api .................................... SKIPPED
[10:08:21][INFO] hadoop-yarn-common ................................. SKIPPED
[10:08:21][INFO] hadoop-yarn-server ................................. SKIPPED
[10:08:21][INFO] hadoop-yarn-server-common .......................... SKIPPED
[10:08:21][INFO] hadoop-yarn-server-nodemanager ..................... SKIPPED
[10:08:21][INFO] hadoop-yarn-server-web-proxy ....................... SKIPPED
[10:08:21][INFO] hadoop-yarn-server-applicationhistoryservice ....... SKIPPED
[10:08:21][INFO] hadoop-yarn-server-resourcemanager ................. SKIPPED
[10:08:21][INFO] hadoop-yarn-server-tests ........................... SKIPPED
[10:08:21][INFO] hadoop-yarn-client ................................. SKIPPED
[10:08:21][INFO] hadoop-yarn-server-sharedcachemanager .............. SKIPPED
[10:08:21][INFO] hadoop-yarn-applications ........................... SKIPPED
[10:08:21][INFO] hadoop-yarn-applications-distributedshell .......... SKIPPED
[10:08:21][INFO] hadoop-yarn-applications-unmanaged-am-launcher ..... SKIPPED
[10:08:21][INFO] hadoop-yarn-site ................................... SKIPPED
[10:08:21][INFO] hadoop-yarn-registry ............................... SKIPPED
[10:08:21][INFO] hadoop-yarn-project ................................ SKIPPED
[10:08:21][INFO] hadoop-mapreduce-client ............................ SKIPPED
[10:08:21][INFO] hadoop-mapreduce-client-core ....................... SKIPPED
[10:08:21][INFO] hadoop-mapreduce-client-common ..................... SKIPPED
[10:08:21][INFO] hadoop-mapreduce-client-shuffle .................... SKIPPED
[10:08:21][INFO] hadoop-mapreduce-client-app ........................ SKIPPED
[10:08:21][INFO] hadoop-mapreduce-client-hs ......................... SKIPPED
[10:08:21][INFO] hadoop-mapreduce-client-jobclient .................. SKIPPED
[10:08:21][INFO] hadoop-mapreduce-client-hs-plugins ................. SKIPPED
[10:08:21][INFO] Apache Hadoop MapReduce Examples ................... SKIPPED
[10:08:21][INFO] hadoop-mapreduce ................................... SKIPPED
[10:08:21][INFO] Apache Hadoop MapReduce Streaming .................. SKIPPED
[10:08:21][INFO] Apache Hadoop Distributed Copy ..................... SKIPPED
[10:08:21][INFO] Apache Hadoop Archives ............................. SKIPPED
[10:08:21][INFO] Apache Hadoop Rumen ................................ SKIPPED
[10:08:21][INFO] Apache Hadoop Gridmix .............................. SKIPPED
[10:08:21][INFO] Apache Hadoop Data Join ............................ SKIPPED
[10:08:21][INFO] Apache Hadoop Ant Tasks ............................ SKIPPED
[10:08:21][INFO] Apache Hadoop Extras ............................... SKIPPED
[10:08:21][INFO] Apache Hadoop Pipes ................................ SKIPPED
[10:08:21][INFO] Apache Hadoop OpenStack support .................... SKIPPED
[10:08:21][INFO] Apache Hadoop Amazon Web Services support .......... SKIPPED
[10:08:21][INFO] Apache Hadoop Azure support ........................ SKIPPED
[10:08:21][INFO] Apache Hadoop Client ............................... SKIPPED
[10:08:21][INFO] Apache Hadoop Mini-Cluster ......................... SKIPPED
[10:08:21][INFO] Apache Hadoop Scheduler Load Simulator ............. SKIPPED
[10:08:21][INFO] Apache Hadoop Tools Dist ........................... SKIPPED
[10:08:21][INFO] Apache Hadoop Tools ................................ SKIPPED
[10:08:21][INFO] Apache Hadoop Distribution ......................... SKIPPED
[10:08:21][INFO] ------------------------------------------------------------------------
[10:08:21][INFO] BUILD FAILURE
[10:08:21][INFO] ------------------------------------------------------------------------
[10:08:21][INFO] Total time: 05:31 min
[10:08:21][INFO] Finished at: 2016-06-28T22:08:24-04:00
[10:08:24][INFO] Final Memory: 131M/494M
[10:08:24][INFO] ------------------------------------------------------------------------
[10:08:24][ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs (default) on project hadoop-hdfs: Execution default of goal org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs failed: Java returned: 137 -> [Help 1]
[10:08:24]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs (default) on project hadoop-hdfs: Execution default of goal org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs failed: Java returned: 137
[10:08:24]        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
[10:08:24]        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[10:08:24]        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[10:08:24]        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
[10:08:24]        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
[10:08:24]        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[10:08:24]        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[10:08:24]        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
[10:08:24]        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
[10:08:24]        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
[10:08:24]        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
[10:08:24]        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[10:08:24]        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
[10:08:24]        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[10:08:24]        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[10:08:24]        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[10:08:24]        at java.lang.reflect.Method.invoke(Method.java:606)
[10:08:24]        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[10:08:24]        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[10:08:24]        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[10:08:24]        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[10:08:24]Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs failed: Java returned: 137
[10:08:24]        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
[10:08:24]        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
[10:08:24]        ... 20 more
[10:08:24]Caused by: : Java returned: 137
[10:08:24]        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
[10:08:24]        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[10:08:24]        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[10:08:24]        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[10:08:24]        at java.lang.reflect.Method.invoke(Method.java:606)
[10:08:24]        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[10:08:24]        at org.apache.tools.ant.Task.perform(Task.java:348)
[10:08:24]        at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:199)
[10:08:24]        at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
[10:08:24]        at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:149)
[10:08:24]        at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
[10:08:24]        at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:756)
[10:08:24]        at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:730)
[10:08:24]        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
[10:08:24]        at org.codehaus.mojo.findbugs.FindBugsMojo.executeFindbugs(FindBugsMojo.groovy:995)
[10:08:24]        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[10:08:24]        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[10:08:24]        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[10:08:24]        at java.lang.reflect.Method.invoke(Method.java:606)
[10:08:24]        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
[10:08:24]        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
[10:08:24]        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
[10:08:24]        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
[10:08:24]        at org.codehaus.mojo.findbugs.FindBugsMojo.execute(FindBugsMojo.groovy:784)
[10:08:24]        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
[10:08:24]        ... 21 more
[10:08:24][ERROR] 
[10:08:24][ERROR] 
[10:08:24][ERROR] For more information about the errors and possible solutions, please read the following articles:
[10:08:24][ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[10:08:24][ERROR] 
[10:08:24][ERROR] After correcting the problems, you can resume the build with the command
[10:08:24][ERROR]   mvn <goals> -rf :hadoop-hdfs




举报
顶部