falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karishma Gulati (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FALCON-1115) Feed Lookup fails in CLI
Date Tue, 24 Mar 2015 12:08:53 GMT
Karishma Gulati created FALCON-1115:
---------------------------------------

             Summary: 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


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)

Mime
View raw message