<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: ambari agent installation with api fails in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229312#M191168</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/17042/hadoopadmn99.html" nodeid="17042"&gt;@Naveen R&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;IMHO you might need to add some service to the newly host added.&lt;/P&gt;&lt;P&gt;can you see by ssh to the host whether the added host has ambari-agent running (ambari-agent status) .&lt;/P&gt;&lt;P&gt;additionally the curl command :&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By:ambari" -i -X GET &lt;A href="http://AMBARI_SERVER:8080/api/v1/clusters/asnaik/hosts/NEWLY_ADDED_HOST" target="_blank"&gt;http://AMBARI_SERVER:8080/api/v1/clusters/asnaik/hosts/NEWLY_ADDED_HOST&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;I would again suggest you add host via Hosts Tab -&amp;gt;Actions -&amp;gt; Add new hosts which is defined and correct way of doing it. or you might need to add service also to the host.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 13:37:33 GMT</pubDate>
    <dc:creator>akhilsnaik</dc:creator>
    <dc:date>2018-08-21T13:37:33Z</dc:date>
    <item>
      <title>ambari agent installation with api fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229309#M191165</link>
      <description>&lt;P&gt;I am trying to install ambari-agent on remote computer which I can ssh without password from server.&lt;/P&gt;&lt;P&gt;I followed this link : &lt;A href="http://www-01.ibm.com/support/docview.wss?uid=swg22000281"&gt;http://www-01.ibm.com/support/docview.wss?uid=swg22000281&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In bootstrap.py userRunAs=null here, If I install with UI, it is usually root.&lt;/P&gt;&lt;P&gt;In the /var/log/ambari-server/ambari-server.log.. &lt;/P&gt;&lt;P&gt;[Thread-12050] BSRunner:258 - Host= &amp;lt;remote host&amp;gt; bs=/usr/lib/python2.6/site-packages/ambari_server/bootstrap.py requestDir=/var/run/ambari-server/bootstrap/32 user=root sshPort=22 keyfile=/var/run/ambari-server/bootstrap/32/sshKey passwordFile null server=&amp;lt;server&amp;gt; version=2.6.1.5 serverPort=8080&lt;STRONG&gt; userRunAs=null&lt;/STRONG&gt; timeout=300&lt;/P&gt;&lt;P&gt;and in /var/log/ambari-server/ambari-audit.log&lt;/P&gt;&lt;P&gt; User(null), RemoteIp(&amp;lt;server&amp;gt;), Operation(User login), Roles(
), Status(Failed), Reason(Authentication required)&lt;/P&gt;&lt;P&gt;User(admin), RemoteIp(&amp;lt;server&amp;gt;), Operation(User login), Roles(
    Ambari: Ambari Administrator), Status(Success)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 12:18:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229309#M191165</guid>
      <dc:creator>amarn_ucs2014</dc:creator>
      <dc:date>2018-08-21T12:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent installation with api fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229310#M191166</link>
      <description>&lt;P&gt;
	Hi &lt;A nodeid="17042" rel="user" href="#" style="background-color: initial;"&gt;@Naveen R&lt;/A&gt; ,
&lt;/P&gt;
&lt;P&gt;
	why dont you try it via UI way.
&lt;/P&gt;
&lt;P&gt;
	navigate to Hosts Tab -&amp;gt;Actions -&amp;gt; Add new hosts and ADd via UI.
&lt;/P&gt;
&lt;P&gt;
	if you are sure you want to do it via REST API. please try the following. it worked for me.
&lt;/P&gt;
&lt;PRE&gt;
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST &lt;A href="http://AMBARI_SERVER:8080/api/v1/bootstrap" target="_blank"&gt;http://AMBARI_SERVER:8080/api/v1/bootstrap&lt;/A&gt; -d '{"verbose":true,"sshKey":"-----BEGIN RSA PRIVATE KEY-----XX PRIVATE KEY-----END RSA PRIVATE KEY-----","hosts":["mycomapny.com"],"user":"root","sshPort":"22","userRunAs":"root"}'
&lt;/PRE&gt;
&lt;P style="color:green"&gt;
	Request you to mark the answer as accepted by clicking on accept button if this helps you :)
&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:14:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229310#M191166</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-08-21T13:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent installation with api fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229311#M191167</link>
      <description>&lt;P&gt;In the &lt;A href="http://&amp;lt;server&amp;gt;:&amp;lt;port&amp;gt;/api/v1/bootstrap/requestId" target="_blank"&gt;http://&amp;lt;server&amp;gt;:&amp;lt;port&amp;gt;/api/v1/bootstrap/requestId&lt;/A&gt;,   the status is SUCCESS , but the new host is not shown in &lt;A href="http://&amp;lt;server&amp;gt;:&amp;lt;port&amp;gt;/api/v1/clusters/&amp;lt;clusterName&amp;gt;/hosts" target="_blank"&gt;http://&amp;lt;server&amp;gt;:&amp;lt;port&amp;gt;/api/v1/clusters/&amp;lt;clusterName&amp;gt;/hosts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:24:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229311#M191167</guid>
      <dc:creator>amarn_ucs2014</dc:creator>
      <dc:date>2018-08-21T13:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent installation with api fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229312#M191168</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/17042/hadoopadmn99.html" nodeid="17042"&gt;@Naveen R&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;IMHO you might need to add some service to the newly host added.&lt;/P&gt;&lt;P&gt;can you see by ssh to the host whether the added host has ambari-agent running (ambari-agent status) .&lt;/P&gt;&lt;P&gt;additionally the curl command :&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By:ambari" -i -X GET &lt;A href="http://AMBARI_SERVER:8080/api/v1/clusters/asnaik/hosts/NEWLY_ADDED_HOST" target="_blank"&gt;http://AMBARI_SERVER:8080/api/v1/clusters/asnaik/hosts/NEWLY_ADDED_HOST&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;I would again suggest you add host via Hosts Tab -&amp;gt;Actions -&amp;gt; Add new hosts which is defined and correct way of doing it. or you might need to add service also to the host.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:37:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229312#M191168</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-08-21T13:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent installation with api fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229313#M191169</link>
      <description>&lt;P&gt;I'm getting bad request as response with message  "Attempted to add unknown hosts to a cluster.  These hosts have not been registered with the server"&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:09:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-installation-with-api-fails/m-p/229313#M191169</guid>
      <dc:creator>amarn_ucs2014</dc:creator>
      <dc:date>2018-08-29T13:09:43Z</dc:date>
    </item>
  </channel>
</rss>

