Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

How does Ambari server knows to look for local yum repository

Hi, I have created a local yum repository that contains the Ambari, HDP and HDP utils tars extracted as per the documentation After installation of ambari-server and setting it up during start of ambari-server it throws a error

ERROR [main] StackContext:217 - Could not load repo results
java.net.UnknownHostException: public-repo-1.hortonworks.com

How do i tell ambari-server to look in to my local yum repository instead of trying to resolve the internet repo.

4 REPLIES 4

How does ambari-server knows to look into local yum and not the internet repo without being explicitly configured somewhere

Super Collaborator

The repos are explicitly defined by an ambari stack. For the HDP stack, these are public-repo-1.hortonworks.com.

You can reconfigure these yourself by logging into Ambari as an admin, dropping down the username > Manage Ambari > Versions > Version Name.

See in the screenshot that I have set the repos to be Artifactory.

43776-screen-shot-2017-11-30-at-33024-pm.png

@Jordan Moore

My question was during startup of ambari-server itself i am getting the error, so before starting ambari-server should i configure somewhere.

Also if i give local repository details during step 1 (select versions) of Ambari installation wizard it gets stuck at confirm host steps even though both the hosts registered successfully.

when i check the logs it says :

01 Dec 2017 13:31:06,807  INFO [ambari-client-thread-68] Configuration:3210 - Ambari properties config file changed.
01 Dec 2017 13:31:06,807  INFO [ambari-client-thread-68] Configuration:3235 - Ambari properties config file changed.
01 Dec 2017 13:31:06,842  WARN [ambari-action-scheduler] ExecutionCommandWrapper:225 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
01 Dec 2017 13:31:06,842  WARN [ambari-action-scheduler] ExecutionCommandWrapper:225 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
01 Dec 2017 13:31:06,861  WARN [ambari-action-scheduler] ExecutionCommandWrapper:225 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
01 Dec 2017 13:31:06,861  WARN [ambari-action-scheduler] ExecutionCommandWrapper:225 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1


Super Collaborator

I don't think the message "Unable to lookup the cluster by ID" has anything to do with local repositories, that looks like a problem with how you named your cluster. See "clusterName=clusterID=-1".

But yes, you had to first create an "ambari.repo" and "hdp.repo" file in /etc/yum.repos.d/ that point to your local repo before you even can install ambari-server and other related HDP packages on that machine.

Try starting over. https://community.hortonworks.com/questions/1110/how-to-completely-remove-uninstall-ambari-and-hdp.h...

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.