Support Questions
Find answers, ask questions, and share your expertise

Creating Ambari Stacks on a new install

Solved Go to solution
Highlighted

Creating Ambari Stacks on a new install

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Creating Ambari Stacks on a new install

Contributor

Ambari 2.2.0 did not support HDP 2.4. It was added in Ambari 2.2.1. However, you should use Ambari 2.2.2, as it is more stable.

View solution in original post

3 REPLIES 3
Highlighted

Re: Creating Ambari Stacks on a new install

Contributor

Ambari 2.2.0 did not support HDP 2.4. It was added in Ambari 2.2.1. However, you should use Ambari 2.2.2, as it is more stable.

View solution in original post

Re: Creating Ambari Stacks on a new install

Contributor
Highlighted

Re: Creating Ambari Stacks on a new install

Thanks! I shall work with our ops guys and test this out.