<?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: Problems Setting up a Local Repository in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-Setting-up-a-Local-Repository/m-p/151128#M36076</link>
    <description>&lt;P&gt;@Savanna Endicott&lt;/P&gt;&lt;P&gt;I performed follwong stpes and my repo is woring fine &lt;/P&gt;&lt;P&gt;yum install
yum-utils createrepo -y&lt;/P&gt;&lt;P&gt; yum install yum-plugin-priorities&lt;/P&gt;&lt;P&gt;yum repolist&lt;/P&gt;&lt;P&gt;cd /var/www/html&lt;/P&gt;&lt;P&gt;mkdir
-p ambari/&amp;lt;OS&amp;gt;&lt;/P&gt;&lt;P&gt;cd
ambari/&amp;lt;OS&amp;gt;&lt;/P&gt;&lt;P&gt;For OS 7&lt;/P&gt;&lt;P&gt;Wget -nv &lt;/P&gt;&lt;P&gt;&lt;A href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.0"&gt;http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.0&lt;/A&gt;
-O /etc/yum.repos.d/ambari.repo&lt;/P&gt;&lt;P&gt;To
sync ambari repo &lt;/P&gt;&lt;P&gt;reposync
-r Updates-ambari-2.2.1.0&lt;/P&gt;&lt;P&gt;Once repo sync is
done &lt;/P&gt;&lt;P&gt;Configure local  yum file on following path /etc/yum.repos.d/ambari.repo&lt;/P&gt;&lt;P&gt;cat
/etc/yum.repos.d/ambari.repo&lt;/P&gt;&lt;P&gt;#VERSION_NUMBER=2.2.1.0-161&lt;/P&gt;&lt;P&gt;[Updates-ambari-2.2.1.0]&lt;/P&gt;&lt;P&gt;name=ambari-2.2.1.0
- Updates&lt;/P&gt;&lt;P&gt;baseurl=http://xxx.xxx.xxx.xxx:80122/repo/centos7/Updates-ambari-2.2.1.0&lt;/P&gt;&lt;P&gt;gpgcheck=0&lt;/P&gt;&lt;P&gt;enabled=0&lt;/P&gt;&lt;P&gt;In this we start the
repo on 8012 port. For this we need to do changes in httpd.conf&lt;/P&gt;&lt;P&gt;And then restart the
service.&lt;/P&gt;&lt;P&gt;You then try to
browse the repo with following URL&lt;/P&gt;&lt;P&gt;&lt;A href="http://xxx.xxx.xxx.xxx:8012" target="_blank"&gt;http://xxx.xxx.xxx.xxx:8012&lt;/A&gt;&lt;A href="http://IP:8012/repo"&gt;/repo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Run the createrepo
command to create repo . On the /var/www/html/centos7/Updates-ambari-2.2.1.0/&lt;/P&gt;&lt;P&gt;Finally local repo
is created for ambari server.&lt;/P&gt;&lt;P&gt;For HDP 2.3 &lt;/P&gt;&lt;P&gt;Wget -nv &lt;/P&gt;&lt;P&gt;&lt;A href="http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.0/hdp.repo"&gt;http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.0/hdp.repo&lt;/A&gt;
-O /etc/yum.repos.d/HDP.repo&lt;/P&gt;&lt;P&gt;reposync - HDP-2.3&lt;/P&gt;&lt;P&gt;cat
/etc/yum.repos.d/HDP.repo&lt;/P&gt;&lt;P&gt;#VERSION_NUMBER=2.2.1.0-161&lt;/P&gt;&lt;P&gt;[HDP-2.3]&lt;/P&gt;&lt;P&gt;name=ambari-2.2.1.0
- Updates&lt;/P&gt;&lt;P&gt;baseurl=http://xxx.xxx.xxx.xxx:8012/repo/centos7/HDP2.3/HDP-2.3.4.0&lt;/P&gt;&lt;P&gt;gpgcheck=0&lt;/P&gt;&lt;P&gt;enabled=0&lt;/P&gt;&lt;P&gt;Run the createrepo
command to create repo . On the /var/www/html/centos7/HDP2.3/HDP-2.3.4.0&lt;/P&gt;&lt;P&gt;Createrepo  -v .&lt;/P&gt;&lt;P&gt;And to see if my local repositories are there, I have used  &lt;A href="http://&amp;lt;" target="_blank"&gt;http://&amp;lt;&lt;/A&gt;; my server's FQDN :8012/repo.&lt;/P&gt;&lt;P&gt;I use 8012 port for my repo server.&lt;/P&gt;&lt;P&gt;For your case try to open the url on&lt;/P&gt;&lt;P&gt; &lt;A href="http://&amp;lt;" target="_blank"&gt;http://&amp;lt;&lt;/A&gt;; my server's FQDN &amp;gt;/repo&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2016 18:40:58 GMT</pubDate>
    <dc:creator>ashneesharma88</dc:creator>
    <dc:date>2016-07-27T18:40:58Z</dc:date>
    <item>
      <title>Problems Setting up a Local Repository</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-Setting-up-a-Local-Repository/m-p/151127#M36075</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have gone through the instructions to set up a local repository, but when I try to go to the base URL link on my browser it either times out or gives a 404 Not Found. &lt;/P&gt;&lt;P&gt;I'm thinking I must have missed a step somewhere or am simply typing the wrong URL. I would appreciate any help.&lt;/P&gt;&lt;P&gt;My httpd server is running:&lt;/P&gt;&lt;PRE&gt;[root@mo-e6f9afb24 /]# /usr/local/apache/bin/apachectl start
httpd (pid 5074) already running
&lt;/PRE&gt;&lt;P&gt;I created the directory /var/www/html/hdp that has the HDP repo (installed using the .repo file, also tried it with the tarball just in case) and had the ambari outside of this folder&lt;/P&gt;&lt;P&gt;Here was the response from my reposync and createrepo - Does this look right? The Ambari and HDP-UTILS responses were the same &lt;/P&gt;&lt;PRE&gt;[root@xxxxxxx hdp]# reposync -r HDP-2.4.2.0/
[root@xxxxxxx hdp]# createrepo /var/www/html/hdp/HDP-2.4.2.0/
Spawning worker 0 with 8 pkgs
Workers Finished
Gathering worker results

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
&lt;/PRE&gt;&lt;P&gt;To see if my local repositories are there, I have used the base URL &lt;A href="http://&amp;lt;" target="_blank"&gt;http://&amp;lt;&lt;/A&gt;; my server's FQDN &amp;gt;/hdp/HDP-2.4.2.0.&lt;/P&gt;&lt;P&gt;I have tried a few different things in terms of file structure, including the step of creating a centos folder inside hdp and including this in the base URL. &lt;/P&gt;&lt;P&gt;Is it possible that someone may see a mistake that I've made? Or an idea to troubleshoot the repository to find the issue?&lt;/P&gt;&lt;P&gt;I would really appreciate any help.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:31:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-Setting-up-a-Local-Repository/m-p/151127#M36075</guid>
      <dc:creator>savanna_endicot</dc:creator>
      <dc:date>2022-09-16T10:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems Setting up a Local Repository</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-Setting-up-a-Local-Repository/m-p/151128#M36076</link>
      <description>&lt;P&gt;@Savanna Endicott&lt;/P&gt;&lt;P&gt;I performed follwong stpes and my repo is woring fine &lt;/P&gt;&lt;P&gt;yum install
yum-utils createrepo -y&lt;/P&gt;&lt;P&gt; yum install yum-plugin-priorities&lt;/P&gt;&lt;P&gt;yum repolist&lt;/P&gt;&lt;P&gt;cd /var/www/html&lt;/P&gt;&lt;P&gt;mkdir
-p ambari/&amp;lt;OS&amp;gt;&lt;/P&gt;&lt;P&gt;cd
ambari/&amp;lt;OS&amp;gt;&lt;/P&gt;&lt;P&gt;For OS 7&lt;/P&gt;&lt;P&gt;Wget -nv &lt;/P&gt;&lt;P&gt;&lt;A href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.0"&gt;http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.0&lt;/A&gt;
-O /etc/yum.repos.d/ambari.repo&lt;/P&gt;&lt;P&gt;To
sync ambari repo &lt;/P&gt;&lt;P&gt;reposync
-r Updates-ambari-2.2.1.0&lt;/P&gt;&lt;P&gt;Once repo sync is
done &lt;/P&gt;&lt;P&gt;Configure local  yum file on following path /etc/yum.repos.d/ambari.repo&lt;/P&gt;&lt;P&gt;cat
/etc/yum.repos.d/ambari.repo&lt;/P&gt;&lt;P&gt;#VERSION_NUMBER=2.2.1.0-161&lt;/P&gt;&lt;P&gt;[Updates-ambari-2.2.1.0]&lt;/P&gt;&lt;P&gt;name=ambari-2.2.1.0
- Updates&lt;/P&gt;&lt;P&gt;baseurl=http://xxx.xxx.xxx.xxx:80122/repo/centos7/Updates-ambari-2.2.1.0&lt;/P&gt;&lt;P&gt;gpgcheck=0&lt;/P&gt;&lt;P&gt;enabled=0&lt;/P&gt;&lt;P&gt;In this we start the
repo on 8012 port. For this we need to do changes in httpd.conf&lt;/P&gt;&lt;P&gt;And then restart the
service.&lt;/P&gt;&lt;P&gt;You then try to
browse the repo with following URL&lt;/P&gt;&lt;P&gt;&lt;A href="http://xxx.xxx.xxx.xxx:8012" target="_blank"&gt;http://xxx.xxx.xxx.xxx:8012&lt;/A&gt;&lt;A href="http://IP:8012/repo"&gt;/repo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Run the createrepo
command to create repo . On the /var/www/html/centos7/Updates-ambari-2.2.1.0/&lt;/P&gt;&lt;P&gt;Finally local repo
is created for ambari server.&lt;/P&gt;&lt;P&gt;For HDP 2.3 &lt;/P&gt;&lt;P&gt;Wget -nv &lt;/P&gt;&lt;P&gt;&lt;A href="http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.0/hdp.repo"&gt;http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.0/hdp.repo&lt;/A&gt;
-O /etc/yum.repos.d/HDP.repo&lt;/P&gt;&lt;P&gt;reposync - HDP-2.3&lt;/P&gt;&lt;P&gt;cat
/etc/yum.repos.d/HDP.repo&lt;/P&gt;&lt;P&gt;#VERSION_NUMBER=2.2.1.0-161&lt;/P&gt;&lt;P&gt;[HDP-2.3]&lt;/P&gt;&lt;P&gt;name=ambari-2.2.1.0
- Updates&lt;/P&gt;&lt;P&gt;baseurl=http://xxx.xxx.xxx.xxx:8012/repo/centos7/HDP2.3/HDP-2.3.4.0&lt;/P&gt;&lt;P&gt;gpgcheck=0&lt;/P&gt;&lt;P&gt;enabled=0&lt;/P&gt;&lt;P&gt;Run the createrepo
command to create repo . On the /var/www/html/centos7/HDP2.3/HDP-2.3.4.0&lt;/P&gt;&lt;P&gt;Createrepo  -v .&lt;/P&gt;&lt;P&gt;And to see if my local repositories are there, I have used  &lt;A href="http://&amp;lt;" target="_blank"&gt;http://&amp;lt;&lt;/A&gt;; my server's FQDN :8012/repo.&lt;/P&gt;&lt;P&gt;I use 8012 port for my repo server.&lt;/P&gt;&lt;P&gt;For your case try to open the url on&lt;/P&gt;&lt;P&gt; &lt;A href="http://&amp;lt;" target="_blank"&gt;http://&amp;lt;&lt;/A&gt;; my server's FQDN &amp;gt;/repo&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 18:40:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-Setting-up-a-Local-Repository/m-p/151128#M36076</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2016-07-27T18:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems Setting up a Local Repository</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-Setting-up-a-Local-Repository/m-p/151129#M36077</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/47576/problems-setting-up-a-local-repository.html#"&gt;@Ashnee Sharma&lt;/A&gt;The changes to httpd.conf fixed everything, I'm now able to access the local repository &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I also changed ServerName to be &amp;lt;FQDN&amp;gt;:8012. Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 20:30:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-Setting-up-a-Local-Repository/m-p/151129#M36077</guid>
      <dc:creator>savanna_endicot</dc:creator>
      <dc:date>2016-07-27T20:30:28Z</dc:date>
    </item>
  </channel>
</rss>

