Description
Submit a feed
<?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>
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.
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
Attachments
Issue Links
- links to