[
https://issues.apache.org/jira/browse/AMBARI-5853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Srimanth Gunturi updated AMBARI-5853:
-------------------------------------
Attachment: AMBARI-5853.patch
Added "/api/v1/views/SLIDER/versions/1.0.0/instances/SLIDER_1/apps" and
"/api/v1/views/SLIDER/versions/1.0.0/instances/SLIDER_1/apps/{appId}"
endpoints.
Response is as below
{code}
{
"href" :
"http://c6401:8080/api/v1/views/SLIDER/versions/1.0.0/instances/SLIDER_1/apps?fields=*",
"items" : [
{
"href" :
"http://c6401:8080/api/v1/views/SLIDER/versions/1.0.0/instances/SLIDER_1/apps/1399950379868_1",
"components" : null,
"configs" : null,
"diagnostics" : "",
"endTime" : 1399950490555,
"id" : "1399950379868_1",
"instance_name" : "SLIDER_1",
"jmx" : null,
"name" : "word count",
"startTime" : 1399950462948,
"state" : "FINISHED",
"type" : "MAPREDUCE",
"urls" : null,
"user" : "ambari-qa",
"version" : "1.0.0",
"view_name" : "SLIDER",
"yarnId" : "application_1399950379868_0001"
}
]
}
{code}
Verified in running Ambari instance that both API work.
Review at https://reviews.apache.org/r/21800/
> Implement apps and app GET endpoint in Slider Apps view
> -------------------------------------------------------
>
> Key: AMBARI-5853
> URL: https://issues.apache.org/jira/browse/AMBARI-5853
> Project: Ambari
> Issue Type: Task
> Components: client
> Affects Versions: 1.6.1
> Reporter: Srimanth Gunturi
> Assignee: Srimanth Gunturi
> Fix For: 1.6.1
>
> Attachments: AMBARI-5853.patch
>
>
> Slider Apps View should provide the GET method for following endpoints -
> {{/api/v1/apps}} and {{/api/v1/apps/app-id}}.
> The response should be in following format
> {code}
> {
> apps: [
> {
> id: 'yarn-bbb',
> yarn_id: 'bbb',
> status: 'running|frozen|???',
> type: 'HBase|Storm|...'
> user: 'yarn',
> start_time: 123456,
> end_time: 345678,
> components: {
> HBASE_MASTER: {
> num_instances: 1,
> active_containers: {
> 'h1': {
> log_location: '..',
> }
> },
> completed_containers: {
> 'h1': {
> log_location: '..',
> }
> }
> }
> HBASE_REGIONSERVER: {
> num_instances: 6,
> active_containers: {
> 'h1': {
> log_location: '..',
> },
> },
> completed_containers: {
> 'h1': {
> log_location: '..',
> }
> }
> }
> },
> jmx: {
> "Regions in Transition": "3",
> },
> urls:{
> "Logs": "http://.…./logs",
> }
> diagnostics: 'frozen was issued',
> configs: {
> 'yarn-site': {
> "a" : "b"
> },
> 'global': {
> }
> }
> }
> ]
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)