Hadoop CDH 5.7编译出现错误

老师帮忙看看,网上方法都尝试过了,还是这样问题。
虚拟机是2核8G内存
 [INFO] --- maven-antrun-plugin:1.7:run (make) @ hadoop-hdfs ---
[INFO] Executing tasks

main:
    [mkdir] Created dir: /home/rpmbuild/rpmbuild/BUILD/hadoop-2.6.0-cdh5.7.0/hadoop-hdfs-project/hadoop-hdfs/target/native
     [exec] -- The C compiler identification is GNU 4.4.7
     [exec] -- The CXX compiler identification is GNU 4.4.7
     [exec] -- Check for working C compiler: /usr/bin/cc
     [exec] -- Check for working C compiler: /usr/bin/cc -- works
     [exec] -- Detecting C compiler ABI info
     [exec] -- Detecting C compiler ABI info - done
     [exec] -- Check for working CXX compiler: /usr/bin/c++
     [exec] -- Check for working CXX compiler: /usr/bin/c++ -- works
     [exec] -- Detecting CXX compiler ABI info
     [exec] -- Detecting CXX compiler ABI info - done
     [exec] -- Performing Test HAVE_BETTER_TLS
     [exec] JAVA_HOME=, JAVA_JVM_LIBRARY=/usr/java/jdk1.7.0_80/jre/lib/amd64/server/libjvm.so
     [exec] JAVA_INCLUDE_PATH=/usr/java/jdk1.7.0_80/include, JAVA_INCLUDE_PATH2=/usr/java/jdk1.7.0_80/include/linux
     [exec] Located all JNI components successfully.
     [exec] -- Performing Test HAVE_BETTER_TLS - Success
     [exec] -- Performing Test HAVE_INTEL_SSE_INTRINSICS
     [exec] -- Performing Test HAVE_INTEL_SSE_INTRINSICS - Success
     [exec] -- Looking for dlopen in dl
     [exec] -- Looking for dlopen in dl - found
     [exec] -- Found JNI: /usr/java/jdk1.7.0_80/jre/lib/amd64/libjawt.so
     [exec] -- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
     [exec] -- checking for module 'fuse'
     [exec] --   package 'fuse' not found
     [exec] -- Failed to find Linux FUSE libraries or include files.  Will not build FUSE client.
     [exec] -- Configuring incomplete, errors occurred!
     [exec] See also "/home/rpmbuild/rpmbuild/BUILD/hadoop-2.6.0-cdh5.7.0/hadoop-hdfs-project/hadoop-hdfs/target/native/CMakeFiles/CMakeOutput.log".
     [exec] CMake Error at main/native/fuse-dfs/CMakeLists.txt:93 (MESSAGE):
     [exec]   Required component fuse_dfs could not be built.
     [exec]
     [exec]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................. SUCCESS [ 59.390 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [  2.148 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [  8.903 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [  2.355 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [  3.121 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [  9.654 s]
[INFO] Apache Hadoop MiniKDC .............................. SUCCESS [ 11.313 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [ 12.905 s]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [  8.494 s]
[INFO] Apache Hadoop Common ............................... SUCCESS [04:11 min]
[INFO] Apache Hadoop NFS .................................. SUCCESS [ 14.689 s]
[INFO] Apache Hadoop KMS .................................. SUCCESS [ 41.891 s]
[INFO] Apache Hadoop Common Project ....................... SUCCESS [  0.114 s]
[INFO] Apache Hadoop HDFS ................................. FAILURE [ 32.630 s]
[INFO] Apache Hadoop HttpFS ............................... SKIPPED
[INFO] Apache Hadoop HDFS BookKeeper Journal .............. SKIPPED
[INFO] Apache Hadoop HDFS-NFS ............................. SKIPPED
[INFO] Apache Hadoop HDFS Project ......................... SKIPPED
[INFO] hadoop-yarn ........................................ SKIPPED
[INFO] hadoop-yarn-api .................................... SKIPPED
[INFO] hadoop-yarn-common ................................. SKIPPED
[INFO] hadoop-yarn-server ................................. SKIPPED
[INFO] hadoop-yarn-server-common .......................... SKIPPED
[INFO] hadoop-yarn-server-nodemanager ..................... SKIPPED
[INFO] hadoop-yarn-server-web-proxy ....................... SKIPPED
[INFO] hadoop-yarn-server-applicationhistoryservice ....... SKIPPED
[INFO] hadoop-yarn-server-resourcemanager ................. SKIPPED
[INFO] hadoop-yarn-server-tests ........................... SKIPPED
[INFO] hadoop-yarn-client ................................. SKIPPED
[INFO] hadoop-yarn-applications ........................... SKIPPED
[INFO] hadoop-yarn-applications-distributedshell .......... SKIPPED
[INFO] hadoop-yarn-applications-unmanaged-am-launcher ..... SKIPPED
[INFO] hadoop-yarn-site ................................... SKIPPED
[INFO] hadoop-yarn-registry ............................... SKIPPED
[INFO] hadoop-yarn-project ................................ SKIPPED
[INFO] hadoop-mapreduce-client ............................ SKIPPED
[INFO] hadoop-mapreduce-client-core ....................... SKIPPED
[INFO] hadoop-mapreduce-client-common ..................... SKIPPED
[INFO] hadoop-mapreduce-client-shuffle .................... SKIPPED
[INFO] hadoop-mapreduce-client-app ........................ SKIPPED
[INFO] hadoop-mapreduce-client-hs ......................... SKIPPED
[INFO] hadoop-mapreduce-client-jobclient .................. SKIPPED
[INFO] hadoop-mapreduce-client-hs-plugins ................. SKIPPED
[INFO] hadoop-mapreduce-client-nativetask ................. SKIPPED
[INFO] Apache Hadoop MapReduce Examples ................... SKIPPED
[INFO] hadoop-mapreduce ................................... SKIPPED
[INFO] Apache Hadoop MapReduce Streaming .................. SKIPPED
[INFO] Apache Hadoop Distributed Copy ..................... SKIPPED
[INFO] Apache Hadoop Archives ............................. SKIPPED
[INFO] Apache Hadoop Archive Logs ......................... SKIPPED
[INFO] Apache Hadoop Rumen ................................ SKIPPED
[INFO] Apache Hadoop Gridmix .............................. SKIPPED
[INFO] Apache Hadoop Data Join ............................ SKIPPED
[INFO] Apache Hadoop Ant Tasks ............................ SKIPPED
[INFO] Apache Hadoop Extras ............................... SKIPPED
[INFO] Apache Hadoop Pipes ................................ SKIPPED
[INFO] Apache Hadoop OpenStack support .................... SKIPPED
[INFO] Apache Hadoop Amazon Web Services support .......... SKIPPED
[INFO] Apache Hadoop Azure support ........................ SKIPPED
[INFO] Apache Hadoop Client ............................... SKIPPED
[INFO] Apache Hadoop Mini-Cluster ......................... SKIPPED
[INFO] Apache Hadoop Scheduler Load Simulator ............. SKIPPED
[INFO] Apache Hadoop Tools Dist ........................... SKIPPED
[INFO] Apache Hadoop Tools ................................ SKIPPED
[INFO] Apache Hadoop Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:49 min
[INFO] Finished at: 2016-06-12T23:05:36+08:00
[INFO] Final Memory: 135M/813M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "fuse" could not be activated because it does not exist.
[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 dir="/home/rpmbuild/rpmbuild/BUILD/hadoop-2.6.0-cdh5.7.0/hadoop-hdfs-project/hadoop-hdfs/target/native" executable="cmake" failonerror="true">... @ 5:151 in /home/rpmbuild/rpmbuild/BUILD/hadoop-2.6.0-cdh5.7.0/hadoop-hdfs-project/hadoop-hdfs/target/antrun/build-main.xml
[ERROR] -> [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/conflu ... ption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hadoop-hdfs
error: Bad exit status from /var/tmp/rpm-tmp.RntjOk (%build)


RPM build errors:
    InstallSourcePackage at: psm.c:244: Header V4 DSA/SHA1 Signature, key ID e8f86acd: NOKEY
    Bad exit status from /var/tmp/rpm-tmp.RntjOk (%build)

fish - Hadooper

赞同来自: 张伟

需要安装fuse devel包,比如,若使用的是centos,需执行yum install fuse-devel将其安装好。

要回复问题请先登录注册