编译hadoop1.0.4时遇到的两个错误

1.缺少autoconf

BUILD FAILED

/home/hadoop/tools/hadoopCode/hadoop-1.0.4/build.xml:618: Execute failed: java.io.IOException: Cannot run program "autoreconf" (in directory "/home/hadoop/tools/hadoopCode/hadoop-1.0.4/src/native"): java.io.IOException: error=2, No such file or directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)

at java.lang.Runtime.exec(Runtime.java:593)

at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:41)

at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:434)

at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:448)

at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:628)

at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)

at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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:435)

 

 

Didn't install any keys

 

安装下就解决了

yum install autoconf automake libtool

 

2。缺目录.eclipse.templates 

哪缺就在哪建一个

 

你可能感兴趣的:(hadoop)