我试图在centos中设置hadoop 2.7.1。
执行命令时出现错误
mvn clean package -Pdist,native -DskipTests -Dtar -e -X.
错误如下:
[INFO] Apache Hadoop Main ................................. SUCCESS [ 13.203 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [ 8.279 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [ 24.190 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [ 1.260 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [ 5.694 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [ 12.566 s]
[INFO] Apache Hadoop MiniKDC .............................. SUCCESS [ 12.298 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [ 19.555 s]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [ 13.942 s]
[INFO] Apache Hadoop Common ............................... FAILURE [ 47.636 s]
[INFO] Apache Hadoop NFS .................................. SKIPPED
[INFO] Apache Hadoop KMS .................................. SKIPPED
[INFO] Apache Hadoop Common Project ....................... SKIPPED
[ERROR] Failed to execute goal org.codehaus.mojo:native-maven-plugin:1.0-alpha-8:javah (default) on project hadoop-common: Error running javah command: Error executing command line. Exit code:127 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:native-maven-plugin:1.0-alpha-8:javah (default) on project hadoop-common: Error running javah command
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at
我已经安装了cmake,在centos中设置了Java。请您帮助我们进行故障排除。