List Task Attempts

Back to Resources

Returns a collection of all task attempts for a given job.

GET /clusters/:name/workflows/:workflowid/jobs/:jobid/taskattempts

Response

200 OK
{
    "href" : "http://your.ambari.server/api/v1/clusters/c1/workflows/mr_201305061943_0001/jobs/job_201305061943_0001/taskattempts",
    "items" : [
        {
            "href" : "http://your.ambari.server/api/v1/clusters/c1/workflows/mr_201305061943_0001/jobs/job_201305061943_0001/taskattempts/attempt_201305061943_0001_m_000001_0",
            "TaskAttempt" : {
                "cluster_name" : "c1",
                "task_attempt_id" : "attempt_201305061943_0001_m_000001_0",
                "workflow_id" : "mr_201305061943_0001",
                "job_id" : "job_201305061943_0001"
            }
        },
        {
            "href" : "http://your.ambari.server/api/v1/clusters/c1/workflows/mr_201305061943_0001/jobs/job_201305061943_0001/taskattempts/attempt_201305061943_0001_m_000002_0",
            "TaskAttempt" : {
                "cluster_name" : "c1",
                "task_attempt_id" : "attempt_201305061943_0001_m_000002_0",
                "workflow_id" : "mr_201305061943_0001",
                "job_id" : "job_201305061943_0001"
            }
        },
        {
            "href" : "http://your.ambari.server/api/v1/clusters/c1/workflows/mr_201305061943_0001/jobs/job_201305061943_0001/taskattempts/attempt_201305061943_0001_r_000000_0",
            "TaskAttempt" : {
                "cluster_name" : "c1",
                "task_attempt_id" : "attempt_201305061943_0001_r_000000_0",
                "workflow_id" : "mr_201305061943_0001",
                "job_id" : "job_201305061943_0001"
            }
        },
        {
            "href" : "http://your.ambari.server/api/v1/clusters/c1/workflows/mr_201305061943_0001/jobs/job_201305061943_0001/taskattempts/attempt_201305061943_0001_m_000000_0",
            "TaskAttempt" : {
                "cluster_name" : "c1",
                "task_attempt_id" : "attempt_201305061943_0001_m_000000_0",
                "workflow_id" : "mr_201305061943_0001",
                "job_id" : "job_201305061943_0001"
            }
        }
    ]
}