Thanks, Will take a look. Thanks, Bhuvnesh Chaudhary Email: bchau <[email protected]>[email protected] Desk: +1-650-846-1696 | Mobile: +1-973-906-6976
On Thu, Nov 19, 2015 at 7:27 PM, Naga Vijay <[email protected]> wrote: > I have logged this - https://issues.apache.org/jira/browse/AMBARI-13982 > > On Wed, Nov 18, 2015 at 10:32 PM, Naga Vijay <[email protected]> wrote: > >> I don't remember seeing anything odd in ambari agent log, but will check >> again tomorrow. I doubt whether it has got to do with OpenSSL, as manual >> registration (through UI) works fine. However, I see this in >> ambari-server.out ... >> >> ~~~~~ >> >> # tail ambari-server.out >> WARNING: A HTTP GET method, public javax.ws.rs.core.Response >> org.apache.ambari.server.api.services.ViewInstanceService.getServices(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), >> should not consume any entity. >> WARNING: A HTTP GET method, public javax.ws.rs.core.Response >> org.apache.ambari.server.api.services.ViewInstanceService.getService(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String), >> should not consume any entity. >> Nov 18, 2015 3:41:14 PM com.sun.jersey.spi.inject.Errors >> processErrorMessages >> WARNING: The following warnings have been detected with resource and/or >> provider classes: >> WARNING: A HTTP GET method, public javax.ws.rs.core.Response >> org.apache.ambari.server.api.services.ViewExternalSubResourceService.getResources(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), >> should not consume any entity. >> Exception in thread "Thread-1577" java.lang.NullPointerException >> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012) >> at java.lang.Runtime.exec(Runtime.java:620) >> at java.lang.Runtime.exec(Runtime.java:528) >> at org.apache.ambari.server.bootstrap.BSRunner.run(BSRunner.java:243) >> >> ~~~~~ >> >> >> On Wed, Nov 18, 2015 at 10:00 PM, Bhuvnesh Pivotal <[email protected] >> > wrote: >> >>> 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 <[email protected]> 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 < >>> [email protected]> 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: bchau <[email protected]>[email protected] >>>> Desk: +1-650-846-1696 | Mobile: +1-973-906-6976 >>>> >>>> On Wed, Nov 18, 2015 at 3:34 PM, Naga Vijay <[email protected]> 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 < >>>>> [email protected]> 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: bchau <[email protected]>[email protected] >>>>>> Desk: +1-650-846-1696 | Mobile: +1-973-906-6976 >>>>>> >>>>>> On Wed, Nov 18, 2015 at 3:00 PM, Naga Vijay <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> Is there a way to get hold of ambari-agent without stepping into >>>>>>> Ambari UI? >>>>>>> >>>>>>> Thanks >>>>>>> Naga >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>> >> >
