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

Hudson commented on AMBARI-8163:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #1023 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/1023/])
AMBARI-8163 - Provide stage resource information via REST API (tbeerbower) 
(tbeerbower: 
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=ae77687f0e712b9682ee46236e78ce6b14a00135)
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/DefaultProviderModule.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterControllerImpl.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Request.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertNoticeResourceProvider.java
* 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ClusterControllerImplTest.java
* 
ambari-server/src/main/java/org/apache/ambari/server/api/resources/BaseResourceDefinition.java
* ambari-server/src/main/java/org/apache/ambari/server/api/query/QueryImpl.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/spi/QueryResponse.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/spi/ExtendedResourceProvider.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RequestImpl.java
* 
ambari-server/src/main/java/org/apache/ambari/server/api/resources/RequestResourceDefinition.java
* 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/StageResourceProviderTest.java
* 
ambari-server/src/main/java/org/apache/ambari/server/api/services/TaskService.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertHistoryResourceProvider.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/spi/ClusterController.java
* 
ambari-server/src/main/java/org/apache/ambari/server/api/services/RequestService.java
* 
ambari-server/src/main/java/org/apache/ambari/server/api/resources/SimpleResourceDefinition.java
* ambari-server/src/test/java/org/apache/ambari/server/orm/dao/StageDAOTest.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/utilities/PropertyHelper.java
* 
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity_.java
* 
ambari-server/src/test/java/org/apache/ambari/server/api/resources/SimpleResourceDefinitionTest.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/dao/StageDAO.java
* 
ambari-server/src/main/java/org/apache/ambari/server/api/services/StageService.java
* 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/QueryResponseImplTest.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/QueryResponseImpl.java
* 
ambari-server/src/main/java/org/apache/ambari/server/api/resources/ResourceInstanceFactoryImpl.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StageResourceProvider.java


> Provide stage resource information via REST API
> -----------------------------------------------
>
>                 Key: AMBARI-8163
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8163
>             Project: Ambari
>          Issue Type: New Feature
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Robert Levas
>            Assignee: Tom Beerbower
>              Labels: api, resources, rest_api
>             Fix For: 2.0.0
>
>
> Currently, it is possible to query Ambari (via the REST API) for details 
> about _asynchronous_ requests and their related tasks. This useful when 
> trying to obtain progress information.  However, some information necessary 
> for the UI to indicate meaningful progress is not available.  This 
> information is related to the stages that are generated. 
> *NOTE:* Each _asynchronous_ request is broken down into 1 or more stages and 
> each stage contains 1 or more tasks.
> If stage information was available via the REST API, it would be possible for 
> the caller (maybe a UI) to track high-level tasks (at the {{stage}} level) 
> rather than each lower-level unit of work (at the {{task}} level).   
> To allow for this, a new API resource (and associated handler) needs to be 
> created.  The resource should be read-only (like {{requests}} and {{tasks}}), 
> and should provide information stored in the {{stage}} table from the Ambari 
> database.  
> The following properties should be returned for each {{stage}}:
> * stage_id
> * request_id
> * cluster_id
> * request_context 
> ** _This should probably be renamed to something more appropriate, like 
> stage_context, stage_name, or etc..._
> * start_time
> * end_time
> * progress_percent
> * status
> It is expected that the resources would be queried using:
> {code}
> GET  /api/v1/clusters/{clusterid}/requests/{requestid}/stages
> {code}
> Also, some subset of the stage data should be provided when querying for 
> details about a specific {{request}}, like in:
> {code}
> GET  /api/v1/clusters/{clusterid}/requests/{requestid}
> {code}
> See {{request}} and {{task}} resource for examples.



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

Reply via email to