First, using yum know whether hplip is installed or not.
It will give you its summary and status (installed/not).
Then you must update hplip and foomatic (if not updated)
Code:
yum update -y hplip foomatic
This should solve your problem. Try and reply back.