may be, if it don’t find the package, i would try an update/repo repo ambari in centos yum repo?
It depend of version ambari ??? and centos 6 for hadoop ??
https://cwiki.apache.org/confluence/display/AMBARI/Install+Ambari+2.0.0+from+Public+Repositories