Member since
01-06-2017
10
Posts
0
Kudos Received
0
Solutions
01-09-2017
05:26 PM
Thanks! I shall work with our ops guys and test this out.
... View more
01-06-2017
11:36 PM
Hello, 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: http://<internal_URL>:8080/repos/hortonworks/HDP/centos7/2.x/updates/2.4.2.0 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: Stacks
HDP 2.3
HDP 2.2
HDP 2.1 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. This is the repo file setup for me. #VERSION_NUMBER=2.2.0.0-1310
[Updates-ambari-2.2.0.0]
name=ambari-2.2.0.0 - Updates
baseurl=http://<repo_url>/repos/hortonworks/ambari-2.2.0.0/centos7/2.2.0.0-1310
gpgcheck=1
gpgkey=http://<repo_url>/repos/keys/RPM-GPG-KEY-ambari
enabled=1
priority=1
#VERSION_NUMBER=2.4.2.0-258
[HDP-2.4.2.0]
name=HDP Version - HDP-2.4.2.0
baseurl=http://<repo_url>/repos/hortonworks/HDP/centos7/2.x/updates/2.4.2.0
gpgcheck=1
gpgkey=http://<repo_url>/repos/keys/RPM-GPG-KEY-HDP
enabled=1
priority=1
[HDP-UTILS-1.1.0.20]
name=HDP Utils Version - HDP-UTILS-1.1.0.20
baseurl=http://<repo_url>/repos/hortonworks/HDP-UTILS-1.1.0.20/repos/centos7gpgcheck=1
gpgkey=http://<repo_url>/repos/keys/RPM-GPG-KEY-HDP-UTILSenabled=1
priority=1 I would be really grateful If anyone can point me to documentation which explains how I can setup a stack after I complete the Ambari server setup. I have seen the wiki (https://cwiki.apache.org/confluence/display/AMBARI/How-To+Define+Stacks+and+Services). There is nothing there that explains on how I can setup an HDP 2.4 Stack. Thank you!
... View more
Labels: