Home Forums HDP on Linux – Installation How do I build hadoop rpms from source rpm

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  Liao Guangxian 4 months, 4 weeks ago.

  • Creator
    Topic
  • #44091

    I downloaded the hadoop src rpm: hadoop-2.2.0.2.0.6.0-76.el6.src.rpm
    What should I do if I want to build the hadoop rpm?

    I tried but got the following errors:

    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.PRSJfl
    + umask 022
    + cd /root/rpmbuild/BUILD
    + LANG=C
    + export LANG
    + unset DISPLAY
    + cd /root/rpmbuild/BUILD
    + rm -rf hadoop-2.2.0.2.0.6.0-src
    + /bin/tar -xf -
    + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/hadoop-2.2.0.2.0.6.0.tar.gz
    + STATUS=0
    + ‘[' 0 -ne 0 ']‘
    + cd hadoop-2.2.0.2.0.6.0-src
    + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.5qbfJQ
    + umask 022
    + cd /root/rpmbuild/BUILD
    + cd hadoop-2.2.0.2.0.6.0-src
    + LANG=C
    + export LANG
    + unset DISPLAY
    + env HADOOP_VERSION=2.2.0.2.0.6.0 ‘hadoop_jar_version=%{hadoop_jar_version}’ HADOOP_ARCH=Linux-amd64-64 bash /root/rpmbuild/SOURCES/do-component-build
    + echo ‘————– Hadoop-do-component-build-started ———–’
    ————– Hadoop-do-component-build-started ———–
    ++ pwd
    + base_path=/root/rpmbuild/BUILD/hadoop-2.2.0.2.0.6.0-src
    ++ echo /root/rpm
    + source_file_path=/root/rpm
    + tar_output_folder=/root/rpm../hdp-output
    + source_file_path=/root/rpm../HDP_COMPONENT_VARIABLES.sh
    + source /root/rpm../HDP_COMPONENT_VARIABLES.sh
    /root/rpmbuild/SOURCES/do-component-build: line 23: /root/rpm../HDP_COMPONENT_VARIABLES.sh: No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.5qbfJQ (%build)

    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.5qbfJQ (%build)

You must be logged in to reply to this topic.