<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Ambari Blueprint Installation using local repositories in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171045#M41897</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13339/mcaubet.html" nodeid="13339"&gt;@Marc Caubet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Call the API to see what configuration is coming back on the repositories:&lt;/P&gt;&lt;PRE&gt;curl -u username:password &lt;A href="http://ambariserver:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories" target="_blank"&gt;http://ambariserver:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Is it returning the configuration you modified in repoinfo.xml?&lt;/P&gt;&lt;P&gt;Did you restart Ambari Server after making those changes?&lt;/P&gt;&lt;P&gt;According to the docs you can specify a repo like this:&lt;/P&gt;&lt;PRE&gt;PUT /api/v1/stacks/:stack/versions/:stackVersion/operating_systems/:osType/repositories/:repoId
 
{
  "Repositories” : {
    "base_url” : ”&amp;lt;CUSTOM_REPO_BASE_URL&amp;gt;",
    "verify_base_url” : true
  }
}
&lt;/PRE&gt;&lt;P&gt;Documentation here: &lt;A target="_blank" href="https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-Step4:SetupStackRepositories%28Optional%29"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-Step4:SetupStackRepositories(Optional)&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2016 21:09:10 GMT</pubDate>
    <dc:creator>myoung</dc:creator>
    <dc:date>2016-09-27T21:09:10Z</dc:date>
    <item>
      <title>Ambari Blueprint Installation using local repositories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171044#M41896</link>
      <description>&lt;P&gt;I have set a local repository which is being propagated in the /etc/yum.repos.d directory (centos7/redhat7) on new installed machines. When I set up a new ambari-server and I install a cluster using blueprints, official repositories are being configured in the /etc/yum.repos.d and the local ones that I have set up are skipped.&lt;/P&gt;&lt;P&gt;I tried to modify the file /var/lib/ambari-server/resources/stacks/HDP/2.4/repos/repoinfo.xml in the ambari-server by replacing the redhat7 repository and I have changed the baseurl with the endpoint of the local repository, but installation is still ignoring this endpoint and keeps setting the official baseurl (which I want to avoid).&lt;/P&gt;&lt;P&gt;How can I force the use of local repositories when cluster installation+configuration is performed through blueprints?&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 16:25:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171044#M41896</guid>
      <dc:creator>mcaubet</dc:creator>
      <dc:date>2016-09-27T16:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Blueprint Installation using local repositories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171045#M41897</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13339/mcaubet.html" nodeid="13339"&gt;@Marc Caubet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Call the API to see what configuration is coming back on the repositories:&lt;/P&gt;&lt;PRE&gt;curl -u username:password &lt;A href="http://ambariserver:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories" target="_blank"&gt;http://ambariserver:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Is it returning the configuration you modified in repoinfo.xml?&lt;/P&gt;&lt;P&gt;Did you restart Ambari Server after making those changes?&lt;/P&gt;&lt;P&gt;According to the docs you can specify a repo like this:&lt;/P&gt;&lt;PRE&gt;PUT /api/v1/stacks/:stack/versions/:stackVersion/operating_systems/:osType/repositories/:repoId
 
{
  "Repositories” : {
    "base_url” : ”&amp;lt;CUSTOM_REPO_BASE_URL&amp;gt;",
    "verify_base_url” : true
  }
}
&lt;/PRE&gt;&lt;P&gt;Documentation here: &lt;A target="_blank" href="https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-Step4:SetupStackRepositories%28Optional%29"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-Step4:SetupStackRepositories(Optional)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:09:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171045#M41897</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-09-27T21:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Blueprint Installation using local repositories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171046#M41898</link>
      <description>&lt;P&gt;Hi Michael thanks for the reply.&lt;/P&gt;&lt;PRE&gt;[root@ambarisrv yum.repos.d]# curl -u username:password &lt;A href="http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories"&gt;http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories&lt;/A&gt;
{
  "href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories",
  "items" : [
  {
  "href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-2.4",
  "Repositories" : {
  "os_type" : "redhat7",
  "repo_id" : "HDP-2.4",
  "stack_name" : "HDP",
  "stack_version" : "2.4"
  }
  },
  {
  "href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-UTILS-1.1.0.20",
  "Repositories" : {
  "os_type" : "redhat7",
  "repo_id" : "HDP-UTILS-1.1.0.20",
  "stack_name" : "HDP",
  "stack_version" : "2.4"
  }
  }
  ]
}&lt;/PRE&gt;&lt;P&gt;So this is not returning the info from the repoinfo.xml. I also tried by restarting the ambari-server.&lt;/P&gt;&lt;PRE&gt;[root@ambarisrv yum.repos.d]# curl -i -H "X-Requested-By: ambari" -u username:password -X PUT -d'{ "Repositories" : { "base_url":"http://antchamber01/hdp", "verify_base_url":true }}' &lt;A href="http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-2.4"&gt;http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-2.4&lt;/A&gt;
HTTP/1.1 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
User: username
Set-Cookie: AMBARISESSIONID=qztzzlsjnykfrct0hcp1jabv;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 0
Server: Jetty(8.1.17.v20150415)&lt;/PRE&gt;&lt;P&gt;This neither helps &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;[root@ambarisrv yum.repos.d]# curl -u username:password &lt;A href="http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories"&gt;http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories&lt;/A&gt;
{
  "href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories",
  "items" : [
  {
  "href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-2.4",
  "Repositories" : {
  "os_type" : "redhat7",
  "repo_id" : "HDP-2.4",
  "stack_name" : "HDP",
  "stack_version" : "2.4"
  }
  },
  {
  "href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-UTILS-1.1.0.20",
  "Repositories" : {
  "os_type" : "redhat7",
  "repo_id" : "HDP-UTILS-1.1.0.20",
  "stack_name" : "HDP",
  "stack_version" : "2.4"
  }
  }
  ]
}&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Marc
&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 22:32:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171046#M41898</guid>
      <dc:creator>mcaubet</dc:creator>
      <dc:date>2016-09-27T22:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Blueprint Installation using local repositories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171047#M41899</link>
      <description>&lt;P&gt;
	Hi again,&lt;/P&gt;&lt;P&gt;
	tying a fresh installation, finally it worked with the workaround pointed by Michael.&lt;/P&gt;&lt;PRE&gt;curl -i -H "X-Requested-By: ambari" -u username:password -X PUT -d'{ "Repositories" : { "base_url":"http://antchamber01/hdp", "verify_base_url":true }}' &lt;A href="http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-2.4" target="_blank"&gt;http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-2.4&lt;/A&gt;&lt;/PRE&gt;&lt;PRE&gt;curl -i -H "X-Requested-By: ambari" -u username:password -X PUT -d'{ 
"Repositories" : { "base_url":"http://antchamber01/hdp-utils", 
"verify_base_url":true }}' 
&lt;A href="http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-UTILS-1.1.0.20" target="_blank"&gt;http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-UTILS-1.1.0.20&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;
	Thanks a lot for your help!&lt;/P&gt;&lt;P&gt;
	Marc&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 19:04:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171047#M41899</guid>
      <dc:creator>mcaubet</dc:creator>
      <dc:date>2016-09-28T19:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Blueprint Installation using local repositories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171048#M41900</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13339/mcaubet.html" nodeid="13339"&gt;@Marc Caubet&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Glad I could help!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 03:19:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171048#M41900</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-09-30T03:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Blueprint Installation using local repositories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171049#M41901</link>
      <description>&lt;P&gt;I used Ambari2.6.1 and I tried all of the solution,however,it did not work for me.The repository is still the latest that offical provided.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 20:29:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171049#M41901</guid>
      <dc:creator>18855529407</dc:creator>
      <dc:date>2018-03-06T20:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Blueprint Installation using local repositories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171050#M41902</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/70264/18855529407.html" nodeid="70264"&gt;@ke chen&lt;BR /&gt;&lt;/A&gt;Starting from Ambari 2.6, the way of specifying repo versions has changed as you can see &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-release-notes/content/ambari_relnotes-2.6.0.0-behavioral-changes.html" target="_blank"&gt;here&lt;/A&gt;. You have to register a VDF file like &lt;A href="http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0/HDP-2.6.4.0-91.xml" target="_blank"&gt;this one&lt;/A&gt; with the version_definitions API (in the VDF file, replace the repository-info.os.repo.baseurl by your local repo url).&lt;/P&gt;&lt;PRE&gt;curl -u user:pwd -H "X-Requested-By: ambari" -X POST
&lt;A href="http://ambari.server:8080/api/v1/version_definitions" target="_blank"&gt;http://ambari.server:8080/api/v1/version_definitions&lt;/A&gt; \
-d '{
 "VersionDefinition": {
   "version_url": "your.vdf.file.xml"
 }
}'&lt;/PRE&gt;&lt;P&gt;You will get an id for the version and you will have to reference it when creating the cluster :&lt;/P&gt;&lt;PRE&gt;{
  "blueprint": "&amp;lt;blueprint name&amp;gt;",
  "repository_version_id": 1,
  "default_password": "password",
  "host_groups": [ ... ]
}&lt;/PRE&gt;&lt;P&gt;More details in the release note: &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-release-notes/content/ambari_relnotes-2.6.0.0-behavioral-changes.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-release-notes/content/ambari_relnotes-2.6.0.0-behavioral-changes.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 19:57:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/171050#M41902</guid>
      <dc:creator>gauthier1</dc:creator>
      <dc:date>2018-03-27T19:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Blueprint Installation using local repositories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/294293#M41903</link>
      <description>&lt;P&gt;This didn't work at all even at 3.1.&amp;nbsp; So what I did after my manual hdp cluster, I gather all the binaries with "rpm -qa --last|more", grab all that binaries in a file (excluding the date) ambari.yum.&amp;nbsp; Before the blueprint I run this "for i in `cat ambari.yum`; do yum install -y $i; done".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worksssssssssssssssssssssssssssss&amp;nbsp; but of course not dynamic one.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 03:21:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/294293#M41903</guid>
      <dc:creator>ric7</dc:creator>
      <dc:date>2020-04-19T03:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Blueprint Installation using local repositories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/295289#M41904</link>
      <description>&lt;P&gt;Here's the github with blueprint work around.&amp;nbsp; There's no ldap/keytab settings yet but reset ambari is included or snapshot it from ur virtualbox or worstation or even esx or script from ur azure images.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/rv-ansible/hadoop_server.git" target="_blank"&gt;https://github.com/rv-ansible/hadoop_server.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;works with centos/redhat 7.6&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 07:37:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Blueprint-Installation-using-local-repositories/m-p/295289#M41904</guid>
      <dc:creator>ric7</dc:creator>
      <dc:date>2020-05-02T07:37:16Z</dc:date>
    </item>
  </channel>
</rss>

