Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 491611742B for ; Tue, 3 Mar 2015 12:18:35 +0000 (UTC) Received: (qmail 16733 invoked by uid 500); 3 Mar 2015 12:18:35 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 16693 invoked by uid 500); 3 Mar 2015 12:18:35 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 16682 invoked by uid 99); 3 Mar 2015 12:18:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 12:18:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 03 Mar 2015 12:18:12 +0000 Received: (qmail 14176 invoked by uid 99); 3 Mar 2015 12:18:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 12:18:04 +0000 Date: Tue, 3 Mar 2015 12:18:04 +0000 (UTC) From: "Pallavi Rao (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FALCON-555) API response from instance "params" having multiple "entry" key MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FALCON-555?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Pallavi Rao updated FALCON-555: ------------------------------- Attachment: FALCON-555.patch The output will now look like this (an array of key-value pairs) : {code} { "status": "SUCCEEDED", "message": "local/PARAMS\n", "requestId": "local/605023830@qtp-1845202222-0 - 095b091e-d255-4fea-a8d= d-d33704fa9dbd\n", "instances": [ { "instance": "2013-11-15T01:00Z", "status": "KILLED", "logFile": "http://C1MLK2JCDTY3.local:11000/oozie?job=3D0000029= -150303102720941-oozie-oozi-W", "cluster": "local", "startTime": "2015-03-03T12:33:04+05:30", "endTime": "2015-03-03T12:33:36+05:30", "details": "", "params": [ { "key": "oozie.coord.application.path", "value": "hdfs://localhost:9000/projects/falcon/staging= /falcon/workflows/process/oozie-mr-process/8bf41b2edb7fccfc59e337b39d9f3456= _1425365830770/DEFAULT/coordinator.xml" }, ... { "key": "jobTracker", "value": "localhost:8032" } ] }]} {code} > API response from instance "params" having multiple "entry" key=20 > ---------------------------------------------------------------- > > Key: FALCON-555 > URL: https://issues.apache.org/jira/browse/FALCON-555 > Project: Falcon > Issue Type: Bug > Components: general > Affects Versions: 0.5 > Environment: QA > Reporter: Samarth Gupta > Assignee: Pallavi Rao > Attachments: FALCON-555.patch > > > the API json response from "instance params" api contains multiple keys i= n the map with "entry" due to which after json parsing all the params are g= etting mapped to single value which is the last one in the map. Issue seems= like one pointed by [~shwethags] http://stackoverflow.com/questions/57947= 13/java-util-map-to-json-object-with-jersey-jaxb-jackson > here is sample API response :=20 > {code} > {"status":"SUCCEEDED","message":"ua1/PARAMS\nua3/PARAMS\nua2/PARAMS\n","r= equestId":"ua1/6dc7b3d5-8c6f-4231-94cb-0a2ca83feb6b\nua3/162bcb9a-60dd-4ffd= -b6e2-0522ad97dbca\nua2/a6f0dd2d-9d91-4d19-9f97-b9fba4cc0f37\n","instances"= :[{"instance":"2014-07-18T05:40Z","status":"SUCCEEDED","logFile":"http://ip= -192-168-138-191:11000/oozie?job=3D0000135-140717092135452-oozie-oozi-W","c= luster":"corp-449802a6","startTime":"2014-07-18T06:56:09Z","endTime":"2014-= 07-18T07:05:35Z","details":"","params":{"entry":{"key":"oozie.coord.applica= tion.path","value":"hdfs://192.168.138.191:8020/projects/ivory/staging/falc= on/workflows/process/agregator-coord16-aa7302e6/1405666500604/DEFAULT"},"en= try":{"key":"shouldRecord","value":"false"},"entry":{"key":"timeStamp","val= ue":"2014-07-18-06-55"},"entry":{"key":"falconInPaths","value":"hdfs://192.= 168.138.191:8020/tmp/falcon-regression/InstanceParamTest/testInputData/2014= /07/18/05/40,hdfs://192.168.138.191:8020/tmp/falcon-regression/InstancePara= mTest/testInputData/2014/07/18/05/20"},"entry":{"key":"broker.url","value":= "tcp://localhost:61617"},"entry":{"key":"feedNames","value":"agregated-logs= 16-7da64724"},"entry":{"key":"falcon.libpath","value":"/projectsTest/ivory/= working/lib"},"entry":{"key":"entityType","value":"process"},"entry":{"key"= :"nominalTime","value":"2014-07-18-05-40"},"entry":{"key":"outputData.meta"= ,"value":"hdfs://192.168.138.191:8020/projects/ivory/clicksMetaData"},"entr= y":{"key":"feedInstancePaths","value":"hdfs://192.168.138.191:8020/examples= /output-data/aggregator/aggregatedLogs/2014/07/18/05/00"},"entry":{"key":"o= ozie.bundle.application.path","value":"hdfs://192.168.138.191:8020/projects= /ivory/staging/falcon/workflows/process/agregator-coord16-aa7302e6/14056665= 00604"},"entry":{"key":"field2","value":"value2"},"entry":{"key":"logDir","= value":"hdfs://192.168.138.191:8020/projects/ivory/staging/falcon/workflows= /process/agregator-coord16-aa7302e6/logs"},"entry":{"key":"falconInputFeedS= torageTypes","value":"FILESYSTEM"},"entry":{"key":"userWorkflowEngine","val= ue":"oozie"},"entry":{"key":"broker.ttlInMins","value":"4320"},"entry":{"ke= y":"oozie.use.system.libpath","value":"true"},"entry":{"key":"outputData.st= ats","value":"hdfs://192.168.138.191:8020/projects/ivory/clicksStats"},"ent= ry":{"key":"queueName","value":"default"},"entry":{"key":"fileTime","value"= :"2014-Jul-19"},"entry":{"key":"oozie.wf.external.id","value":"agregator-co= ord16-aa7302e6/DEFAULT/2014-07-18T05:40Z"},"entry":{"key":"field1","value":= "value1"},"entry":{"key":"workflowEngineUrl","value":"http://192.168.138.19= 1:11000/oozie/"},"entry":{"key":"userBrokerImplClass","value":"org.apache.a= ctivemq.ActiveMQConnectionFactory"},"entry":{"key":"broker.impl.class","val= ue":"org.apache.activemq.ActiveMQConnectionFactory"},"entry":{"key":"userWo= rkflowName","value":"agregator-coord16-aa7302e6-workflow"},"entry":{"key":"= inputData","value":"hdfs://192.168.138.191:8020/tmp/falcon-regression/Insta= nceParamTest/testInputData/2014/07/18/05/40,hdfs://192.168.138.191:8020/tmp= /falcon-regression/InstanceParamTest/testInputData/2014/07/18/05/20"},"entr= y":{"key":"entityName","value":"agregator-coord16-aa7302e6"},"entry":{"key"= :"userBrokerUrl","value":"tcp://localhost:61617?daemon=3Dtrue"},"entry":{"k= ey":"falconInputFeeds","value":"raaw-logs16-728ad378"},"entry":{"key":"user= .name","value":"samarth.gupta"},"entry":{"key":"userWorkflowVersion","value= ":"1.0"},"entry":{"key":"oozie.bundle.id","value":"0000133-140717092135452-= oozie-oozi-B"},"entry":{"key":"cluster","value":"corp-449802a6"},"entry":{"= key":"jobPriority","value":"NORMAL"},"entry":{"key":"colo.name","value":"ua= 1"},"entry":{"key":"nameNode","value":"hdfs://192.168.138.191:8020"},"entry= ":{"key":"outputData.tmp","value":"/tmp"},"entry":{"key":"user","value":"sa= marth.gupta"},"entry":{"key":"outputData","value":"hdfs://192.168.138.191:8= 020/examples/output-data/aggregator/aggregatedLogs/2014/07/18/05/00"},"entr= y":{"key":"oozie.wf.application.path","value":"hdfs://192.168.138.191:8020/= projects/ivory/staging/falcon/workflows/process/agregator-coord16-aa7302e6/= 1405666500604/DEFAULT"},"entry":{"key":"jobTracker","value":"192.168.138.19= 1:8021"}}},{"instance":"2014-07-18T05:40Z","status":"WAITING","cluster":"co= rp-449802a6-845e3a5e21","details":"hdfs://192.168.138.41:8020/tmp/falcon-re= gression/InstanceParamTest/testInputData/2014/07/18/05/40#hdfs://192.168.13= 8.41:8020/tmp/falcon-regression/InstanceParamTest/testInputData/2014/07/18/= 05/20"},{"instance":"2014-07-18T05:40Z","status":"WAITING","cluster":"corp-= 449802a6-bd5d2e0d11","details":"hdfs://192.168.138.115:8020/tmp/falcon-regr= ession/InstanceParamTest/testInputData/2014/07/18/05/40#hdfs://192.168.138.= 115:8020/tmp/falcon-regression/InstanceParamTest/testInputData/2014/07/18/0= 5/20"}]} > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)