[
https://issues.apache.org/jira/browse/FALCON-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Suhas Vasu resolved FALCON-1115.
--------------------------------
Resolution: Fixed
All the sub-tasks mentioned are resolved.
Resolving this ticket. reopen if any further issues are found.
> Feed Lookup fails in CLI
> -------------------------
>
> Key: FALCON-1115
> URL: https://issues.apache.org/jira/browse/FALCON-1115
> Project: Falcon
> Issue Type: Bug
> Components: feed
> Affects Versions: trunk
> Environment: QA
> Reporter: Karishma Gulati
> Assignee: Ajay Yadava
> Fix For: 0.6.1
>
>
> After submitting a feed,
> {code}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <feed name="FeedLookupAPITest--raaw-logs16-1b60ab7d" description="clicks log"
> xmlns="uri:falcon:feed:0.1">
> <partitions>
> <partition name="country"/>
> <partition name="colo"/>
> </partitions>
> <frequency>minutes(20)</frequency>
> <timezone>UTC</timezone>
> <late-arrival cut-off="hours(6)"/>
> <clusters>
> <cluster name="FeedLookupAPITest--corp-89631dac" type="source">
> <validity start="2009-02-01T00:00Z" end="2099-05-01T00:00Z"/>
> <retention limit="months(9000)" action="delete"/>
> </cluster>
> </clusters>
> <locations>
> <location type="data"
> path="/tmp/falcon-regression/FeedLookupAPITest/${YEAR}/${MONTH}/${DAY}/${HOUR}/${MINUTE}"/>
> <location type="stats" path="/projects/falcon/clicksStats"/>
> <location type="meta" path="/projects/falcon/clicksMetaData"/>
> </locations>
> <ACL owner="karishmagulati" group="users" permission="*"/>
> <schema location="/schema/clicks" provider="protobuf"/>
> <properties>
> <property name="field1" value="value1"/>
> <property name="field2" value="value2"/>
> </properties>
> </feed>
> {code}
> the cli command
> {code}
> ./falcon entity -type feed -lookup -path
> /tmp/falcon-regression/FeedLookupAPITest/2014/10/10/23/00/
> {code}
> throws the following Exception:
> {code}
> java.lang.NullPointerException
> at
> org.apache.falcon.resource.FeedLookupResult.toString(FeedLookupResult.java:60)
> at org.apache.falcon.ResponseHelper.getString(ResponseHelper.java:270)
> at org.apache.falcon.cli.FalconCLI.entityCommand(FalconCLI.java:412)
> at org.apache.falcon.cli.FalconCLI.run(FalconCLI.java:188)
> at org.apache.falcon.cli.FalconCLI.main(FalconCLI.java:138)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)