I would like to download only few rpms from the public repository.
but none of these public repository links display the packages.
instead i get below error.
<Message>The specified key does not exist.</Message>
If you want to find all the RPMs of a particular HDP release then you should refer to the following link:
For HDP 2.4: Hortonworks Yum Repositories : https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_HDP_Reference_Guide/content/ch03s06s01.h...
Download the Offline repo which contains the needed RPMs.
# wget http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/188.8.131.52/HDP-184.108.40.206-centos6-rpm.tar.gz
The extract those "tar.gz" files to find the RPMs.