This is the documentation for CDH 5.0.x. Documentation for other versions is available at Cloudera Documentation.

Building an RPM

Download SRPMs from archive.cloudera.com. The source RPMs for CDH 5 reside at http://archive.cloudera.com/cdh5/redhat/5/x86_64/cdh/5/SRPMS/, http://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/5/SRPMS/ or http://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 September 3, 2015.