Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Can't use public Repository when registering version with ambari 2.7

Highlighted

Can't use public Repository when registering version with ambari 2.7

New Contributor

Why it Can't use public Repository when registering version with ambari 2.7? The hosts can access the Internet.

94508-1.png

4 REPLIES 4

Re: Can't use public Repository when registering version with ambari 2.7

Hi @Zyann,

I guess you are hitting : https://issues.apache.org/jira/browse/AMBARI-24496

Have you followed the steps mentioned in the hortonworks docs : https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.3.0/ambari-managed-hdf-upgrade/content/hdf-get_...

especially this one :

  • If you are upgrading an HDF-only cluster, open the ambari.repo or ambari.list file, depending on your operating system. Remove the following line:
#json.url = http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json

try to remove this line from /etc/yum.repos.d/ambari.XXX.repo and restart ambari-server and see if this helps .

if it doesn't work please revert back to this thread with contents of /var/lib/ambari-server/resources/stacks/HDF/3.3/repos/repoinfo.xml and tag me by name so that i get notified.

Please accept this answer if you find it helpful.

Re: Can't use public Repository when registering version with ambari 2.7

New Contributor

hi, @Akhil S NaikAkhil S Naik,

I removed that line, it still doesn't work. And this is contents of repoinfo.xml:

<?xml version="1.0"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at


       http://www.apache.org/licenses/LICENSE-2.0


   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<reposinfo>
    <latest>http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json</latest>
    <os family="redhat-ppc7">
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDF/centos7-ppc/3.x/updates/3.3.0.0</baseurl>
            <repoid>HDF-3.3</repoid>
            <reponame>HDF</reponame>
        </repo>
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7-ppc</baseurl>
            <repoid>HDP-UTILS-1.1.0.22</repoid>
            <reponame>HDP-UTILS</reponame>
            <repoid>HDP-UTILS-1.1.0.22</repoid>
            <reponame>HDP-UTILS</reponame>
        </repo>
    </os>
    <os family="redhat7">
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/3.3.0.0</baseurl>
            <repoid>HDF-3.3</repoid>
            <reponame>HDF</reponame>
        </repo>
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7</baseurl>
            <repoid>HDP-UTILS-1.1.0.22</repoid>
            <reponame>HDP-UTILS</reponame>
        </repo>
    </os>
    <os family="suse12">
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDF/sles12/3.x/updates/3.3.0.0</baseurl>
            <repoid>HDF-3.3</repoid>
            <reponame>HDF</reponame>
        </repo>
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/sles12</baseurl>
            <repoid>HDP-UTILS-1.1.0.22</repoid>
            <reponame>HDP-UTILS</reponame>
        </repo>
    </os>
    <os family="debian9">
   </os>
    <os family="debian9">
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDF/debian9/3.x/updates/3.3.0.0</baseurl>
            <repoid>HDF-3.3</repoid>
            <reponame>HDF</reponame>
        </repo>
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/debian9</baseurl>
            <repoid>HDP-UTILS-1.1.0.22</repoid>
            <reponame>HDP-UTILS</reponame>
        </repo>
    </os>
    <os family="ubuntu12">
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDF/ubuntu12/3.x/updates/3.3.0.0</baseurl>
            <repoid>HDF-3.3</repoid>
            <reponame>HDF</reponame>
        </repo>
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu12</baseurl>
            <repoid>HDP-UTILS-1.1.0.22</repoid>
            <reponame>HDP-UTILS</reponame>
        </repo>
    </os>
    <os family="ubuntu14">
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDF/ubuntu14/3.x/updates/3.3.0.0</baseurl>
            <repoid>HDF-3.3</repoid>
 <baseurl>http://public-repo-1.hortonworks.com/HDF/ubuntu14/3.x/updates/3.3.0.0</baseurl>
            <repoid>HDF-3.3</repoid>
            <reponame>HDF</reponame>
        </repo>
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu14</baseurl>
            <repoid>HDP-UTILS-1.1.0.22</repoid>
            <reponame>HDP-UTILS</reponame>
        </repo>
    </os>
    <os family="ubuntu16">
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDF/ubuntu16/3.x/updates/3.3.0.0</baseurl>
            <repoid>HDF-3.3</repoid>
            <reponame>HDF</reponame>
        </repo>
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu16</baseurl>
            <repoid>HDP-UTILS-1.1.0.22</repoid>
            <reponame>HDP-UTILS</reponame>
        </repo>
    </os>
    <os family="amazonlinux2">
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.3.0.0</baseurl>
            <repoid>HDF-3.3</repoid>
            <reponame>HDF</reponame>
        </repo>
        <repo>

 </repo>
        <repo>
            <baseurl>http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/amazonlinux2</baseurl>
            <repoid>HDP-UTILS-1.1.0.22</repoid>
            <reponame>HDP-UTILS</reponame>
        </repo>
    </os>
</reposinfo>

Re: Can't use public Repository when registering version with ambari 2.7

Hi @Zyann ,

Can you please try to add the Version using VDF File : http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/3.3.0.0/HDF-3.3.0.0-165.xml

I assume the your operating system is Centos7.

if not Please find the Base Repo for others here : https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.3.0/release-notes/content/hdf_repository_locati...

and add HDF-3.3.0.0-165.xml to base repo for getting VDF.

please revert if this worked for you and accept the answer if its helpful :)

Re: Can't use public Repository when registering version with ambari 2.7

Hi @Zyann,

Can you see if this solution works for you.

Can you please login and accept this answer if it did ?

Don't have an account?
Coming from Hortonworks? Activate your account here