I am trying to create an ansible deployment script for HDP using Ambari blueprints. So far I can deploy clusters on an environment where I have internet access. However, I am unable to do so on environments that have their own local cached repo and no internet access for the servers. I get the following error when I am trying to modify the base repo url
"org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: Stack data, Stack HDP 2.4 is not found in Ambari metainfo"
This is when I set the repositories base url to our own internal repo:
FYI, I have confirmed that the above repo works. I understand I am getting the above exception because the info isn't there in the metainfo file.
When I log on to the Ambari UI, I see the following stacks:
So I am trying to figure out if I am missing any steps after I do the ambari-server setup?
Is my base URL wrong or have I missed changing any config file? I don't know where is it getting the previous versions of HDP. I can see them in the metainfo file under /var/lib/ but why are there previous versions of HDP present there.