The sources are available in our repository. Run the following command:
sudo rpm -Uvh http://public-repo-1.hortonworks.com/HDP-184.108.40.206/repos/centos6/hdp-release-220.127.116.11-1.el6.noarch.rpm
Then do a search for each of the desired projects for which you desire the source, such as:
sudo yum search hadoop
The above command will give a listing of all available packages with hadoop in the name, this will include the src rpm. Then do a ‘sudo rpm -i -src.rpm’ to get the desired source.