The sources are available in our repository. Run the following command:
sudo rpm -Uvh http://public-repo-1.hortonworks.com/HDP-126.96.36.199/repos/centos6/hdp-release-188.8.131.52-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.