Cloudera Enterprise 5.15.x | Other versions

Building an RPM

Download SRPMs from archive.cloudera.com. The source RPMs for CDH 5 reside at https://archive.cloudera.com/cdh5/redhat/5/x86_64/cdh/5/SRPMS/, https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/5/SRPMS/ or https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5/SRPMS/. Run the following commands as a non-root user, substituting the particular SRPM that you intend to build:

$ export SRPM=hadoop-0.20-0.20.2+320-1.src.rpm
$ rpmbuild --nodeps --rebuild $SRPM                  # Builds the native RPMs
$ rpmbuild --nodeps --rebuild --target noarch $SRPM  # Builds the java RPMs

The built packages can be found in $HOME/rpmbuild/RPMS.

Page generated May 18, 2018.