Pradarttana created AMBARI-19457:
------------------------------------

             Summary: Rest Api to fetch hive jobs list is returning an empty 
json
                 Key: AMBARI-19457
                 URL: https://issues.apache.org/jira/browse/AMBARI-19457
             Project: Ambari
          Issue Type: Bug
          Components: ambari-views
            Reporter: Pradarttana


Rest Api to fetch list of Hive jobs is returning an empty json

api:- 
http://172.22.122.64:8080/api/v1/views/HIVE/versions/1.5.0/instances/AUTO_HIVE_INSTANCE/jobs/
{code}
[ ]
{code}

while api to request individual job id is working fine
http://172.22.122.64:8080/api/v1/views/HIVE/versions/1.5.0/instances/AUTO_HIVE_INSTANCE/jobs/1
{code}
{"job":{"owner":"admin","dataBase":"default","statusDir":"/user/admin/hive/jobs/hive-job-1-2017-01-11_05-53","queryFile":"/user/admin/hive/jobs/hive-job-1-2017-01-11_05-53/query.hql","globalSettings":"","dagId":"","title":"Worksheet","duration":0,"referrer":"job","logFile":"/user/admin/hive/jobs/hive-job-1-2017-01-11_05-53/logs","id":"1","applicationId":"","dateSubmitted":1484113992368,"status":"SUCCEEDED"}}
{code}




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

Reply via email to