Created 11-30-2017 11:14 AM
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.
Created 11-30-2017 11:16 AM
How does ambari-server knows to look into local yum and not the internet repo without being explicitly configured somewhere
Created on 11-30-2017 09:32 PM - edited 08-17-2019 08:53 PM
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.
Created 12-01-2017 08:03 AM
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
Created 12-01-2017 04:14 PM
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...