ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhuvnesh Pivotal <bchaudh...@pivotal.io>
Subject Re: - How to get hold of ambari-agent without getting into Ambari UI? ...
Date Thu, 19 Nov 2015 06:00:31 GMT
Not sure based on the message shared, could you pLease check Ambari-agent log to see if there
are any error messages.

Also check for OpenSSL version on the Ambari agent to verify if that is above the required
version, often if OpenSSL is not updated, bootstrap request might keep running.

Sent from my iPhone

> On Nov 18, 2015, at 6:04 PM, Naga Vijay <nagahive@gmail.com> wrote:
> 
> Thank you, Bhuvnesh ; That has helped me move further, but it is running for 15 minutes,
and not moving to SUCCESS or FAILURE. Here's what I see in ambari-server.log ...
> 
> ~~~~~
> 
> # echo; egrep 'Request directory|HostList for polling on' ambari-server.log | head -2;
echo; echo ".........."; echo; egrep 'Request directory|HostList for polling on' ambari-server.log
| tail -2; echo
> 
> 19 Nov 2015 01:45:13,050  INFO [pool-9-thread-1] BSHostStatusCollector:55 - Request directory
/var/run/ambari-server/bootstrap/1
> 19 Nov 2015 01:45:13,050  INFO [pool-9-thread-1] BSHostStatusCollector:62 - HostList
for polling on [ip-10-4-148-251.us-west-2.compute.internal, ip-10-4-148-74.us-west-2.compute.internal]
> 
> ..........
> 
> 19 Nov 2015 02:00:03,090  INFO [pool-9-thread-1] BSHostStatusCollector:55 - Request directory
/var/run/ambari-server/bootstrap/1
> 19 Nov 2015 02:00:03,090  INFO [pool-9-thread-1] BSHostStatusCollector:62 - HostList
for polling on [ip-10-4-148-251.us-west-2.compute.internal, ip-10-4-148-74.us-west-2.compute.internal]
> 
> ~~~~~
> 
> Any thoughts on what could be happening?
> 
> 
>> On Wed, Nov 18, 2015 at 3:51 PM, Bhuvnesh Chaudhary <bchaudhary@pivotal.io>
wrote:
>> Great, so you don't need to get hold of ambari-agent individually. You can create
the bootstrap request to setup the agents. Then you can go on to create the cluster.
>> 
>> something like below:
>> '''
>>         Call bootstrap with host list and ssh key of root
>>         
>>         curl -i -u admin:admin -H 'X-Requested-By: ambari' -H 'Content-Type: application/json'
-X POST -d'{
>>            "verbose":true,
>>            "sshKey":"-----BEGIN RSA PRIVATE KEY-----\nPRIVATE-KEY-CONTENT-HERE\n----END
RSA PRIVATE KEY-----\n",
>>            "hosts":[
>>               "c6401.ambari.apache.org",
>>               "c6402.ambari.apache.org",
>>               "c6403.ambari.apache.org"
>>            ],
>>            "user":"vagrant"
>>         }' http://localhost:8080/api/v1/bootstrap
>>         
>>         RESPONSE
>>         {"status":"OK","log":"Running Bootstrap now.","requestId":1}
>>         
>>         CHECK STATUS
>>         curl -i -uadmin:admin http://localhost:8080/api/v1/bootstrap/1
>>         
>>         {"status":"RUNNING","hostsStatus":[{"hostName":"c6401.ambari.apache.org","status":"RUNNING","log":""},{"hostName":"c6402.ambari.apache.org","status":"RUNNING","log":""},{"hostName":"c6403.ambari.apache.org","status":"RUNNING","log":""}],"log":""}
>>         
>>         SUCCESS
>>         {"status":"SUCCESS","hostsStatus":[{"hostName":"c6401.ambari.apache.org","status":"DONE","statusCode":"0","log":"...."}
>>         
>>         else FAILURE
>> 
>> Thanks,
>> Bhuvnesh Chaudhary
>> Email: bchaudhary@pivotal.io 
>> Desk: +1-650-846-1696 | Mobile: +1-973-906-6976
>> 
>>> On Wed, Nov 18, 2015 at 3:34 PM, Naga Vijay <nagahive@gmail.com> wrote:
>>> Hi Bhuvnesh,
>>> 
>>> I am trying out total end-to-end automation ...
>>> 
>>> . Creating VMs
>>> . Creating a Cluster with the VMs
>>> 
>>> I could get the Ambari Server {Setup,Start} as part of the automation, and am
now stalled at the point wherein I need Ambari Agent (before doing the Blueprints things to
create the cluster from a reference/template cluster).
>>> 
>>> Thanks
>>> Naga
>>> 
>>> 
>>>> On Wed, Nov 18, 2015 at 3:18 PM, Bhuvnesh Chaudhary <bchaudhary@pivotal.io>
wrote:
>>>> Hello Naga,
>>>> 
>>>> Could you please elaborate what you are trying to achieve ?
>>>> Also, when you login to Ambari UI, you essentially do not deal with Ambari
Agent directly. You have options related to services which are available on the UI and you
just trigger those which calls the backend operations. 
>>>> 
>>>> Thanks,
>>>> Bhuvnesh Chaudhary
>>>> Email: bchaudhary@pivotal.io 
>>>> Desk: +1-650-846-1696 | Mobile: +1-973-906-6976
>>>> 
>>>>> On Wed, Nov 18, 2015 at 3:00 PM, Naga Vijay <nagahive@gmail.com>
wrote:
>>>>> Hello,
>>>>> 
>>>>> Is there a way to get hold of ambari-agent without stepping into Ambari
UI?
>>>>> 
>>>>> Thanks
>>>>> Naga
> 

Mime
View raw message