Install these packages and it may ask you to download and install other plugins.
# yum install hplip hplip-gui hpijs
Second, install plugins for the HP printer.
# hp-plugin
Then you can try to install the printer again:
# hp-setup