[
https://issues.apache.org/jira/browse/OOZIE-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13728273#comment-13728273
]
Robert Kanter commented on OOZIE-1481:
--------------------------------------
Using the latest trunk, I ran the Aggregator example that creates 2 actions:
*len=2*
{noformat}http://localhost:11000/oozie/v1/job/0000000-130802162530766-oozie-rkan-C?len=2&offset=0{noformat}
{code}
{
"status" : "SUCCEEDED",
"total" : 2,
"concurrency" : 1,
"conf" : "<configuration>\r\n <property>\r\n
<name>examplesRoot</name>\r\n <value>examples</value>\r\n </property>\r\n
<property>\r\n <name>oozie.coord.application.path</name>\r\n
<value>hdfs://localhost:8020/user/rkanter/examples/apps/aggregator/coordinator.xml</value>\r\n
</property>\r\n <property>\r\n <name>start</name>\r\n
<value>2010-01-01T01:00Z</value>\r\n </property>\r\n <property>\r\n
<name>user.name</name>\r\n <value>rkanter</value>\r\n </property>\r\n
<property>\r\n <name>queueName</name>\r\n <value>default</value>\r\n
</property>\r\n <property>\r\n <name>nameNode</name>\r\n
<value>hdfs://localhost:8020</value>\r\n </property>\r\n <property>\r\n
<name>jobTracker</name>\r\n <value>localhost:8021</value>\r\n
</property>\r\n <property>\r\n <name>end</name>\r\n
<value>2010-01-01T03:00Z</value>\r\n </property>\r\n</configuration>",
"executionPolicy" : "FIFO",
"toString" : "Coordinator application
id[0000000-130802162530766-oozie-rkan-C] status[SUCCEEDED]",
"coordJobName" : "aggregator-coord",
"endTime" : "Fri, 01 Jan 2010 03:00:00 GMT",
"lastAction" : "Fri, 01 Jan 2010 03:00:00 GMT",
"coordExternalId" : null,
"group" : null,
"user" : "rkanter",
"timeZone" : "UTC",
"coordJobId" : "0000000-130802162530766-oozie-rkan-C",
"consoleUrl" : null,
"mat_throttling" : 12,
"acl" : null,
"coordJobPath" :
"hdfs://localhost:8020/user/rkanter/examples/apps/aggregator/coordinator.xml",
"pauseTime" : null,
"timeOut" : 120,
"startTime" : "Fri, 01 Jan 2010 01:00:00 GMT",
"timeUnit" : "MINUTE",
"nextMaterializedTime" : "Fri, 01 Jan 2010 03:00:00 GMT",
"frequency" : "60",
"actions" : [
{
"id" : "0000000-130802162530766-oozie-rkan-C@1",
"createdTime" : "Fri, 02 Aug 2013 23:25:48 GMT",
"externalId" : "0000001-130802162530766-oozie-rkan-W",
"missingDependencies" : "",
"runConf" : null,
"createdConf" : null,
"consoleUrl" : null,
"nominalTime" : "Fri, 01 Jan 2010 01:00:00 GMT",
"pushMissingDependencies" : null,
"type" : null,
"errorMessage" : null,
"externalStatus" : null,
"actionNumber" : 1,
"errorCode" : null,
"toString" : "CoordinatorAction
name[0000000-130802162530766-oozie-rkan-C@1] status[SUCCEEDED]",
"coordJobId" : "0000000-130802162530766-oozie-rkan-C",
"lastModifiedTime" : "Fri, 02 Aug 2013 23:26:08 GMT",
"status" : "SUCCEEDED",
"trackerUri" : null
},
{
"id" : "0000000-130802162530766-oozie-rkan-C@2",
"createdTime" : "Fri, 02 Aug 2013 23:30:44 GMT",
"externalId" : "0000002-130802162530766-oozie-rkan-W",
"missingDependencies" : "",
"runConf" : null,
"createdConf" : null,
"consoleUrl" : null,
"nominalTime" : "Fri, 01 Jan 2010 02:00:00 GMT",
"pushMissingDependencies" : null,
"type" : null,
"errorMessage" : null,
"externalStatus" : null,
"actionNumber" : 2,
"errorCode" : null,
"toString" : "CoordinatorAction
name[0000000-130802162530766-oozie-rkan-C@2] status[SUCCEEDED]",
"coordJobId" : "0000000-130802162530766-oozie-rkan-C",
"lastModifiedTime" : "Fri, 02 Aug 2013 23:31:02 GMT",
"status" : "SUCCEEDED",
"trackerUri" : null
}
]
}
{code}
*len=1*
{noformat}http://localhost:11000/oozie/v1/job/0000000-130802162530766-oozie-rkan-C?len=1&offset=0{noformat}
{code}
{
"status" : "SUCCEEDED",
"total" : 2,
"concurrency" : 1,
"conf" : "<configuration>\r\n <property>\r\n
<name>examplesRoot</name>\r\n <value>examples</value>\r\n </property>\r\n
<property>\r\n <name>oozie.coord.application.path</name>\r\n
<value>hdfs://localhost:8020/user/rkanter/examples/apps/aggregator/coordinator.xml</value>\r\n
</property>\r\n <property>\r\n <name>start</name>\r\n
<value>2010-01-01T01:00Z</value>\r\n </property>\r\n <property>\r\n
<name>user.name</name>\r\n <value>rkanter</value>\r\n </property>\r\n
<property>\r\n <name>queueName</name>\r\n <value>default</value>\r\n
</property>\r\n <property>\r\n <name>nameNode</name>\r\n
<value>hdfs://localhost:8020</value>\r\n </property>\r\n <property>\r\n
<name>jobTracker</name>\r\n <value>localhost:8021</value>\r\n
</property>\r\n <property>\r\n <name>end</name>\r\n
<value>2010-01-01T03:00Z</value>\r\n </property>\r\n</configuration>",
"executionPolicy" : "FIFO",
"toString" : "Coordinator application
id[0000000-130802162530766-oozie-rkan-C] status[SUCCEEDED]",
"coordJobName" : "aggregator-coord",
"endTime" : "Fri, 01 Jan 2010 03:00:00 GMT",
"lastAction" : "Fri, 01 Jan 2010 03:00:00 GMT",
"coordExternalId" : null,
"group" : null,
"user" : "rkanter",
"timeZone" : "UTC",
"coordJobId" : "0000000-130802162530766-oozie-rkan-C",
"consoleUrl" : null,
"mat_throttling" : 12,
"acl" : null,
"coordJobPath" :
"hdfs://localhost:8020/user/rkanter/examples/apps/aggregator/coordinator.xml",
"pauseTime" : null,
"timeOut" : 120,
"startTime" : "Fri, 01 Jan 2010 01:00:00 GMT",
"timeUnit" : "MINUTE",
"nextMaterializedTime" : "Fri, 01 Jan 2010 03:00:00 GMT",
"frequency" : "60",
"actions" : [
{
"id" : "0000000-130802162530766-oozie-rkan-C@1",
"createdTime" : "Fri, 02 Aug 2013 23:25:48 GMT",
"externalId" : "0000001-130802162530766-oozie-rkan-W",
"missingDependencies" : "",
"runConf" : null,
"createdConf" : null,
"consoleUrl" : null,
"nominalTime" : "Fri, 01 Jan 2010 01:00:00 GMT",
"pushMissingDependencies" : null,
"type" : null,
"errorMessage" : null,
"externalStatus" : null,
"actionNumber" : 1,
"errorCode" : null,
"toString" : "CoordinatorAction
name[0000000-130802162530766-oozie-rkan-C@1] status[SUCCEEDED]",
"coordJobId" : "0000000-130802162530766-oozie-rkan-C",
"lastModifiedTime" : "Fri, 02 Aug 2013 23:26:08 GMT",
"status" : "SUCCEEDED",
"trackerUri" : null
}
]
}
{code}
*len=0*
{noformat}http://localhost:11000/oozie/v1/job/0000000-130802162530766-oozie-rkan-C?len=0&offset=0{noformat}
{code}
{
"status" : "SUCCEEDED",
"total" : 2,
"concurrency" : 1,
"conf" : "<configuration>\r\n <property>\r\n
<name>examplesRoot</name>\r\n <value>examples</value>\r\n </property>\r\n
<property>\r\n <name>oozie.coord.application.path</name>\r\n
<value>hdfs://localhost:8020/user/rkanter/examples/apps/aggregator/coordinator.xml</value>\r\n
</property>\r\n <property>\r\n <name>start</name>\r\n
<value>2010-01-01T01:00Z</value>\r\n </property>\r\n <property>\r\n
<name>user.name</name>\r\n <value>rkanter</value>\r\n </property>\r\n
<property>\r\n <name>queueName</name>\r\n <value>default</value>\r\n
</property>\r\n <property>\r\n <name>nameNode</name>\r\n
<value>hdfs://localhost:8020</value>\r\n </property>\r\n <property>\r\n
<name>jobTracker</name>\r\n <value>localhost:8021</value>\r\n
</property>\r\n <property>\r\n <name>end</name>\r\n
<value>2010-01-01T03:00Z</value>\r\n </property>\r\n</configuration>",
"executionPolicy" : "FIFO",
"toString" : "Coordinator application
id[0000000-130802162530766-oozie-rkan-C] status[SUCCEEDED]",
"coordJobName" : "aggregator-coord",
"endTime" : "Fri, 01 Jan 2010 03:00:00 GMT",
"lastAction" : "Fri, 01 Jan 2010 03:00:00 GMT",
"coordExternalId" : null,
"group" : null,
"user" : "rkanter",
"timeZone" : "UTC",
"coordJobId" : "0000000-130802162530766-oozie-rkan-C",
"consoleUrl" : null,
"mat_throttling" : 12,
"acl" : null,
"coordJobPath" :
"hdfs://localhost:8020/user/rkanter/examples/apps/aggregator/coordinator.xml",
"pauseTime" : null,
"timeOut" : 120,
"startTime" : "Fri, 01 Jan 2010 01:00:00 GMT",
"timeUnit" : "MINUTE",
"nextMaterializedTime" : "Fri, 01 Jan 2010 03:00:00 GMT",
"frequency" : "60",
"actions" : [
{
"id" : "0000000-130802162530766-oozie-rkan-C@1",
"createdTime" : "Fri, 02 Aug 2013 23:25:48 GMT",
"externalId" : "0000001-130802162530766-oozie-rkan-W",
"missingDependencies" : "",
"runConf" : null,
"createdConf" : null,
"consoleUrl" : null,
"nominalTime" : "Fri, 01 Jan 2010 01:00:00 GMT",
"pushMissingDependencies" : null,
"type" : null,
"errorMessage" : null,
"externalStatus" : null,
"actionNumber" : 1,
"errorCode" : null,
"toString" : "CoordinatorAction
name[0000000-130802162530766-oozie-rkan-C@1] status[SUCCEEDED]",
"coordJobId" : "0000000-130802162530766-oozie-rkan-C",
"lastModifiedTime" : "Fri, 02 Aug 2013 23:26:08 GMT",
"status" : "SUCCEEDED",
"trackerUri" : null
},
{
"id" : "0000000-130802162530766-oozie-rkan-C@2",
"createdTime" : "Fri, 02 Aug 2013 23:30:44 GMT",
"externalId" : "0000002-130802162530766-oozie-rkan-W",
"missingDependencies" : "",
"runConf" : null,
"createdConf" : null,
"consoleUrl" : null,
"nominalTime" : "Fri, 01 Jan 2010 02:00:00 GMT",
"pushMissingDependencies" : null,
"type" : null,
"errorMessage" : null,
"externalStatus" : null,
"actionNumber" : 2,
"errorCode" : null,
"toString" : "CoordinatorAction
name[0000000-130802162530766-oozie-rkan-C@2] status[SUCCEEDED]",
"coordJobId" : "0000000-130802162530766-oozie-rkan-C",
"lastModifiedTime" : "Fri, 02 Aug 2013 23:31:02 GMT",
"status" : "SUCCEEDED",
"trackerUri" : null
}
]
}
{code}
Notice the number of entries in the {{actions}} in each output. When
{{len=2}}, it was 2; when {{len=1}} it was 1; and when {{len=0}} it was 2
again.
> Getting a coordinator job info with len=0 should return 0 actions
> -----------------------------------------------------------------
>
> Key: OOZIE-1481
> URL: https://issues.apache.org/jira/browse/OOZIE-1481
> Project: Oozie
> Issue Type: Bug
> Components: coordinator
> Reporter: Robert Kanter
>
> If you fetch a URL such as:
> {noformat}
> http://localhost:11000/oozie/v1/job/0000002-130731172618471-oozie-oozi-C?len=1
> {noformat}
> you'll get the job info for the coordinator job, and 1 of its actions.
> If you only want to get the info for the coordinator job itself and don't
> care about the actions, it seems logical that {{len=0}} should do this;
> however, it seems to be ignored and gives you all actions instead.
> {noformat}
> http://localhost:11000/oozie/v1/job/0000002-130731172618471-oozie-oozi-C?len=0
> {noformat}
> should return 0 actions.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira