title: Unable to register host while creating Apache Ambari cluster
body: <p>I am trying to create localhost Apache Ambari cluster on CentOS7. I am using Ambari 2.2.2 binaries downloaded and installed from the Ambari repository with the following commands</p>
  
  <pre><code>cd /etc/yum.repos.d/
  wget  http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.2.0/ambari.repo
  yum install ambari-server
  ambari-server setup
  ambari-server start
  </code></pre>
  
  <p>Before starting the server I have done all the necessary preparations steps described on the <a href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.0.0/bk_Installing_HDP_AMB/content/_prepare_the_environment.html" rel="nofollow noreferrer" title="Hortonworks">Hortonworks</a> including the setup of passwordless ssh, which is frequent reason of problems according to the posts found on the internet. I verify it with</p>
  
  <pre><code>ssh root@localhost
  </code></pre>
  
  <p>During the creation of cluster in the "Install options" window I enter the name of the host I want to create (localhost in my case) and have already tried both of the options, which are</p>
  
  <ul>
  <li>providing rsa secret key direktly - in this case the next window
  simply stucks in the "Installing" stage and does not go any further,
  showing no errors</li>
  <li>performing manual registration of hosts.</li>
  </ul>
  
  <p>For the second option I have downloaded and installed ambari-agent</p>
  
  <pre><code>yum install ambari-agent
  ambari-agent start
  </code></pre>
  
  <p>In case of manual host registration I am getting the following error </p>
  
  <p><strong>"Host checks were skipped on 1 hosts that failed to register."</strong>.</p>
  
  <p>When I click on "Failed", which in some cases described over the internet is supposed to deliver more precise description of a problem I see the following 
  <strong>"Registering with the server...
  Registration with the server failed."</strong></p>
  
  <p>As a result I don't even now where to start searching for the possible reasons of this error.</p>