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

Setting up an environment for building RPMs

Red Hat or CentOS systems

Users of these systems can run the following command to set up their environment:

$ rpmdev-setuptree                                   # Creates ~/rpmbuild and ~/.rpmmacros

SLES systems

Users of these systems can run the following command to set up their environment:

$ mkdir -p ~/rpmbuild/{BUILD,RPMS,S{OURCE,PEC,RPM}S}
$ echo "%_topdir $HOME/rpmbuild">  ~/.rpmmacros 
Page generated September 3, 2015.