Created 11-13-2017 10:37 AM
Hi,
While installing Ambari 2.6 to setup a 2 node HDP cluster i was stuck at step 3 saying "Please wait while the hosts are being checked for potential problems..". i have checked the ambari-server.log and it says "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"
Here is the excerpt from the ambari-server.log
13 Nov 2017 13:09:24,422 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 13 Nov 2017 13:09:25,427 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 13 Nov 2017 13:11:11,433 INFO [pool-18-thread-1] MetricsServiceImpl:65 - Attempting to initialize metrics sink 13 Nov 2017 13:11:11,434 INFO [pool-18-thread-1] MetricsServiceImpl:81 - ********* Configuring Metric Sink ********** 13 Nov 2017 13:11:11,434 INFO [pool-18-thread-1] AmbariMetricSinkImpl:95 - No clusters configured. 13 Nov 2017 13:16:11,434 INFO [pool-18-thread-1] MetricsServiceImpl:65 - Attempting to initialize metrics sink 13 Nov 2017 13:16:11,435 INFO [pool-18-thread-1] MetricsServiceImpl:81 - ********* Configuring Metric Sink ********** 13 Nov 2017 13:16:11,435 INFO [pool-18-thread-1] AmbariMetricSinkImpl:95 - No clusters configured.
pls help
i have followed the steps in hortonworks youtube channel on setting up the cluster but dont know what i am missing.
Thanks
Rahul
Created 11-15-2017 05:27 PM
@Geoffrey Shelton Okot its already updated to point my local repository
i thought that the repository url that i define in step 1 of install wizard will be used. But anyways my ambari.repo and hdp.repo in all my nodes are updated to point to local repo .
should i create the directory as mentioned in the documents for the baseurl as the tar that i downloaded when extracted was not in that pattern. does it really matters.
Created 11-15-2017 09:31 PM
It's very important to stick to the official documentation see link
Defining a repository during the install step wont force Ambari to pick up that location it will always read from the /etc/yum.repos.d/*
Yes you should create the /var/www/html/ directory and unzip as stated in the document. Remember to copy the repos to all the nodes in the cluster!
Good luck
Created 11-16-2017 05:30 AM
@Geoffrey Shelton Okot Can you please clarify on this
The tar that i downloaded
ambari-2.6.0.0-centos6.tar.gz when extracted the directory looks like "/<webserver>/ambari/centos6/2.6.0.0-267"
HDP-2.6.3.0-centos6-rpm.tar.gz when extracted looks like "/<webserver>/HDP/centos6/2.6.3.0-235"
HDP-UTILS-1.1.0.21-centos6.tar.gz when extracted does not create structure its just extracts in the same directory
whereas in the doc it says
http://<web.server>/hdp/HDP/<OS>/2.x/updates/<latest.version>;
http://<web.server>/hdp/HDP-UTILS-<version>/repos/<OS>;
so should i manually go ahead and create these directories to look like above.
Created 11-16-2017 07:38 AM
The main issue that i am facing is "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"
The only error that i see in ambari-server.log is during ambari-server start which is
|
even though i have set up my local yum repo as mentioned in the doc.
i get success at step 3 of confirm hosts but the checking for additional warning is looping for infinite and when i see the log it gives unable to find cluster by iD
Created 11-16-2017 08:34 AM
Can you share your ambari/hdp.repos in /etc/yum.repos.d/*, because the error just confirms that installation is pointing to an public repo
Clean out all packages and metadata from cache
yum clean all
Ensure your ambari & hdp repos point to the internal repos above
Check enabled repos
yum repolist
Retry the installation
Created 11-16-2017 08:47 AM
I have attached the hdp.repo and ambari.repo that i have in all my nodes.
i have also done yum clean all and yum repolist before installing.
The urls in the hdp.repo and ambari.repo is accesible from both the host as well
Created 11-16-2017 09:18 AM
When you hit the below URL's can you see the bits you downloaded and unzipped earlier?
http://xxxxmaapl685.ad.infosys.com/Ambari-2.6.0.0/centos6 http://xxxxmaapl685.ad.infosys.com/hdp/HDP-UTILS-1.1.0.21/repos/centos6 http://xxxxmaapl685.ad.infosys.com/hdp/HDP/centos6/2.x/updates/2.6.3.0
Please see this 2 videos
Ensure your setup matches this short demo
Created 11-16-2017 10:15 AM
Yes My local repository setup matches with the one that was shown in both the videos
i am able to browse the files in the browser when i hit the following urls
Also i am using the default postgres that ambari installed. will that be a problem or should i configure Mysql
Created 11-16-2017 10:58 AM
Good news, you can now proceed using postgres doesn't cause any problems at all, but if you are a fan of MySQL then see link.
if you intend to use the embedded postgres then choose option 1 when running
ambari-server setup
Using Postgres is straightforward and easy
Created 11-16-2017 11:43 AM
So far my configuration is proper as per all of yours suggestion I don’t know what I am missing or what is going wrong how can I debug this to solve so that I can create a successful cluster and does not have to see the “unable to find cluster by ID” again.