This is the documentation for Cloudera Enterprise 5.8.x. Documentation for other versions is available at Cloudera Documentation.

Setting Up an Environment for Building RPMs

RHEL 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 July 8, 2016.