[ 
https://issues.apache.org/jira/browse/FALCON-2023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Balu Vellanki resolved FALCON-2023.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: trunk

Issue resolved by pull request 182
[https://github.com/apache/falcon/pull/182]

> Feed eviction fails when feed locations "stats" and "meta" does not have time 
> pattern.
> --------------------------------------------------------------------------------------
>
>                 Key: FALCON-2023
>                 URL: https://issues.apache.org/jira/browse/FALCON-2023
>             Project: Falcon
>          Issue Type: Bug
>          Components: feed
>    Affects Versions: 0.9
>            Reporter: Balu Vellanki
>            Assignee: Venkatesan Ramachandran
>            Priority: Blocker
>             Fix For: trunk, 0.10
>
>
> Submit a feed 
> {code}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <feed name="rawEmailFeed" description="Raw customer email feed" 
> xmlns="uri:falcon:feed:0.1">
>     <tags>externalSystem=USWestEmailServers</tags>
>     <groups>churnAnalysisDataPipeline</groups>
>     <frequency>hours(1)</frequency>
>     <timezone>UTC</timezone>
>     <late-arrival cut-off="hours(1)"/>
>     <clusters>
>         <cluster name="primaryCluster" type="source">
>             <validity start="2015-10-30T01:00Z" end="2015-10-30T10:00Z"/>
>             <retention limit="days(90)" action="delete"/>
>         </cluster>
>     </clusters>
>     <locations>
>         <location type="data" 
> path="/user/ambari-qa/falcon/demo/primary/input/enron/${YEAR}-${MONTH}-${DAY}-${HOUR}"/>
>         <location type="stats" path="/tmp"/>
>         <location type="meta" path="/tmp"/>
>     </locations>
>     <ACL owner="ambari-qa" group="users" permission="0x755"/>
>     <schema location="/none" provider="/none"/>
> </feed>
> {code}
> Notice how "stats" and "meta" does not have time pattern. Both stats and meta 
> location are optional, and if they dont have timed pattern - it should not 
> lead to failure in feed eviction.  But feed eviction fails with following 
> error.
> {code}
> Caused by: org.apache.falcon.FalconException: Couldn't evict feed from 
> fileSystem
>       at 
> org.apache.falcon.entity.FileSystemStorage.evict(FileSystemStorage.java:306)
>       at org.apache.falcon.retention.FeedEvictor.run(FeedEvictor.java:76)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>       at org.apache.falcon.retention.FeedEvictor.main(FeedEvictor.java:52)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       at org.apache.oozie.action.hadoop.JavaMain.run(JavaMain.java:56)
>       ... 15 more
> Caused by: java.io.IOException: Unable to resolve pattern for feedPath: /tmp
>       at 
> org.apache.falcon.entity.FeedHelper.getFeedBasePath(FeedHelper.java:442)
>       at 
> org.apache.falcon.entity.FileSystemStorage.fileSystemEvictor(FileSystemStorage.java:331)
>       at 
> org.apache.falcon.entity.FileSystemStorage.evict(FileSystemStorage.java:300)
>       ... 23 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to