[ 
https://issues.apache.org/jira/browse/AMBARI-13982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15015126#comment-15015126
 ] 

Naga Vijayapuram commented on AMBARI-13982:
-------------------------------------------

Here's the curl command-line issued from my Mac, pointing to the Ambari Server 
running on CentOS/Ubuntu box, and the response ...

{code}
> curl -i -uadmin:admin -H 'X-Requested-By: ambari' -H 'Content-Type: 
> application/json' -X POST [email protected] 
> http://10.4.148.58:8081/api/v1/bootstrap
HTTP/1.1 100 Continue

HTTP/1.1 200 OK
User: admin
Set-Cookie: AMBARISESSIONID=m5a59y364c0i1m0008nwsa3pp;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: application/json
Vary: Accept-Encoding, User-Agent
Content-Length: 60
Server: Jetty(8.1.17.v20150415)

{"status":"OK","log":"Running Bootstrap now.","requestId":1}
{code}
And here's the check request, issued from my Mac, and pointing to the Ambari 
Server running on CentOS/Ubuntu box, and the response ...
{code}
> curl -i -uadmin:admin http://10.4.148.58:8081/api/v1/bootstrap/1
HTTP/1.1 200 OK
User: admin
Set-Cookie: AMBARISESSIONID=dikvkwaam4221rvfv0m9bce97;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: application/json
Vary: Accept-Encoding, User-Agent
Content-Length: 215
Server: Jetty(8.1.17.v20150415)

{"status":"RUNNING","hostsStatus":[{"hostName":"ip-10-4-148-58.us-west-2.compute.internal","status":"RUNNING","log":""},{"hostName":"ip-10-4-148-69.us-west-2.compute.internal","status":"RUNNING","log":""}],"log":""}
{code}
Issue ...
{code}
. From Client-Side (on my Mac box) - The status check response stays put as 
RUNNING forever (waited and observed for about 20-30 minutes by issuing the 
status check curl command and noticing RUNNING)
. From Server-Side (on the CentOS/Ubuntu box) -
.. Constant scroll of the two lines in log file shown below
.. NPE in log file shown below
{code}
Server-side log (1/2) ...
{code}
ubuntu@ip-10-4-148-58:~$ tail -2 /var/log/ambari-server/ambari-server.log 
20 Nov 2015 03:18:56,027  INFO [pool-8-thread-1] BSHostStatusCollector:55 - 
Request directory /var/run/ambari-server/bootstrap/1
20 Nov 2015 03:18:56,027  INFO [pool-8-thread-1] BSHostStatusCollector:62 - 
HostList for polling on [ip-10-4-148-58.us-west-2.compute.internal, 
ip-10-4-148-69.us-west-2.compute.internal]
{code}
{code}
ubuntu@ip-10-4-148-58:~$ tail -22 /var/log/ambari-server/ambari-server.out
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response 
org.apache.ambari.server.api.services.RequestService.getRequest(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String),
 should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response 
org.apache.ambari.server.api.services.ClusterService.getClusters(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.ClusterService.getCluster(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String),
 should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response 
org.apache.ambari.server.api.services.ClusterService.getArtifact(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String,java.lang.String),
 should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response 
org.apache.ambari.server.api.services.ClusterService.getArtifacts(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String),
 should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response 
org.apache.ambari.server.api.services.TargetClusterService.getTargetClusters(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.TargetClusterService.getTargetCluster(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String),
 should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response 
org.apache.ambari.server.api.services.FeedService.getFeeds(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.FeedService.getFeed(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String),
 should not consume any entity.
Nov 20, 2015 2:49:00 AM 
com.google.common.util.concurrent.ServiceManager$ServiceListener startTimer
INFO: Starting AmbariServerAlertService [NEW]
Nov 20, 2015 2:49:00 AM 
com.google.common.util.concurrent.ServiceManager$ServiceListener startTimer
INFO: Starting AlertNoticeDispatchService [NEW]
Nov 20, 2015 2:49:00 AM 
com.google.common.util.concurrent.ServiceManager$ServiceListener 
finishedStarting
INFO: Started AmbariServerAlertService [RUNNING] in 4 ms.
Nov 20, 2015 2:49:00 AM 
com.google.common.util.concurrent.ServiceManager$ServiceListener 
finishedStarting
INFO: Started AlertNoticeDispatchService [RUNNING] in 5 ms.
Exception in thread "Thread-46" 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)
{code}

> Bootstrap API hangs (stays in RUNNING state)
> --------------------------------------------
>
>                 Key: AMBARI-13982
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13982
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Naga Vijayapuram
>
> Tried Bootstrap API (curl command from Mac) pointing to Ambari Server running 
> on CentOS and Ubuntu boxes and landed into the same issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to