[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.2.2:cmake-compile (cmake-compile) on project hadoop-pipes: Error executing CMake: Cannot run program “cmake” (in directory “/Users/zhuxuemin/IdeaProjects/hadoop-3.2.2-src/hadoop-tools/hadoop-pipes/target/native”): error=2, No such file or directory -> [Help 1]
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.2.2:cmake-compile (cmake-compile) on project hadoop-common: Error executing CMake: Cannot run program “cmake” (in directory “/Users/zhuxuemin/IdeaProjects/hadoop-3.2.2-src/hadoop-common-project/hadoop-common/target/native”): error=2, No such file or directory -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 -rf :hadoop-pipes
有效的解决办法: brew install autoconf automake cmake wget