You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Samarth Gupta (JIRA)" <ji...@apache.org> on 2014/07/22 09:07:39 UTC
[jira] [Created] (FALCON-555) API response from instance "params"
having multiple "entry" key
Samarth Gupta created FALCON-555:
------------------------------------
Summary: API response from instance "params" having multiple "entry" key
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: pavan kumar kolamuri
the API json response from "instance params" api contains multiple keys in the map with "entry" due to which after json parsing all the params are getting mapped to single value which is the last one in the map. Issue seems like one pointed by [~shwethags] http://stackoverflow.com/questions/5794713/java-util-map-to-json-object-with-jersey-jaxb-jackson
here is sample API response :
{code}
{"status":"SUCCEEDED","message":"ua1/PARAMS\nua3/PARAMS\nua2/PARAMS\n","requestId":"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=0000135-140717092135452-oozie-oozi-W","cluster":"corp-449802a6","startTime":"2014-07-18T06:56:09Z","endTime":"2014-07-18T07:05:35Z","details":"","params":{"entry":{"key":"oozie.coord.application.path","value":"hdfs://192.168.138.191:8020/projects/ivory/staging/falcon/workflows/process/agregator-coord16-aa7302e6/1405666500604/DEFAULT"},"entry":{"key":"shouldRecord","value":"false"},"entry":{"key":"timeStamp","value":"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/InstanceParamTest/testInputData/2014/07/18/05/20"},"entry":{"key":"broker.url","value":"tcp://localhost:61617"},"entry":{"key":"feedNames","value":"agregated-logs16-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"},"entry":{"key":"feedInstancePaths","value":"hdfs://192.168.138.191:8020/examples/output-data/aggregator/aggregatedLogs/2014/07/18/05/00"},"entry":{"key":"oozie.bundle.application.path","value":"hdfs://192.168.138.191:8020/projects/ivory/staging/falcon/workflows/process/agregator-coord16-aa7302e6/1405666500604"},"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":"falconInputFeedStorageTypes","value":"FILESYSTEM"},"entry":{"key":"userWorkflowEngine","value":"oozie"},"entry":{"key":"broker.ttlInMins","value":"4320"},"entry":{"key":"oozie.use.system.libpath","value":"true"},"entry":{"key":"outputData.stats","value":"hdfs://192.168.138.191:8020/projects/ivory/clicksStats"},"entry":{"key":"queueName","value":"default"},"entry":{"key":"fileTime","value":"2014-Jul-19"},"entry":{"key":"oozie.wf.external.id","value":"agregator-coord16-aa7302e6/DEFAULT/2014-07-18T05:40Z"},"entry":{"key":"field1","value":"value1"},"entry":{"key":"workflowEngineUrl","value":"http://192.168.138.191:11000/oozie/"},"entry":{"key":"userBrokerImplClass","value":"org.apache.activemq.ActiveMQConnectionFactory"},"entry":{"key":"broker.impl.class","value":"org.apache.activemq.ActiveMQConnectionFactory"},"entry":{"key":"userWorkflowName","value":"agregator-coord16-aa7302e6-workflow"},"entry":{"key":"inputData","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/InstanceParamTest/testInputData/2014/07/18/05/20"},"entry":{"key":"entityName","value":"agregator-coord16-aa7302e6"},"entry":{"key":"userBrokerUrl","value":"tcp://localhost:61617?daemon=true"},"entry":{"key":"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":"ua1"},"entry":{"key":"nameNode","value":"hdfs://192.168.138.191:8020"},"entry":{"key":"outputData.tmp","value":"/tmp"},"entry":{"key":"user","value":"samarth.gupta"},"entry":{"key":"outputData","value":"hdfs://192.168.138.191:8020/examples/output-data/aggregator/aggregatedLogs/2014/07/18/05/00"},"entry":{"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.191:8021"}}},{"instance":"2014-07-18T05:40Z","status":"WAITING","cluster":"corp-449802a6-845e3a5e21","details":"hdfs://192.168.138.41:8020/tmp/falcon-regression/InstanceParamTest/testInputData/2014/07/18/05/40#hdfs://192.168.138.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-regression/InstanceParamTest/testInputData/2014/07/18/05/40#hdfs://192.168.138.115:8020/tmp/falcon-regression/InstanceParamTest/testInputData/2014/07/18/05/20"}]}
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)