falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (FALCON-346) Feed can't be submitted
Date Tue, 11 Mar 2014 11:26:42 GMT

    [ https://issues.apache.org/jira/browse/FALCON-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13930250#comment-13930250
] 

Jean-Baptiste Onofré commented on FALCON-346:
---------------------------------------------

Here's the falcon.application.log extract containing the submit error stacktrace:

{code}
2014-03-11 12:20:28,556 ERROR - [1210313844@qtp-1428614609-0:jbonofre:POST//entities/submit/feed
de0f7af9-6825-4f3e-9406-cf57eed595f9] ~ Unable to persist entity object (AbstractEntityManager:156)
java.lang.IllegalStateException: Cluster entity vertex must exist: local
	at org.apache.falcon.metadata.EntityRelationshipGraphBuilder.addRelationToCluster(EntityRelationshipGraphBuilder.java:131)
	at org.apache.falcon.metadata.EntityRelationshipGraphBuilder.addFeedEntity(EntityRelationshipGraphBuilder.java:72)
	at org.apache.falcon.metadata.MetadataMappingService.onAdd(MetadataMappingService.java:160)
	at org.apache.falcon.entity.store.ConfigurationStore.onAdd(ConfigurationStore.java:205)
	at org.apache.falcon.entity.store.ConfigurationStore.publish(ConfigurationStore.java:165)
	at org.apache.falcon.resource.AbstractEntityManager.submitInternal(AbstractEntityManager.java:332)
	at org.apache.falcon.resource.AbstractEntityManager.submit(AbstractEntityManager.java:153)
	at org.apache.falcon.resource.ConfigSyncService.submit(ConfigSyncService.java:44)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.falcon.resource.channel.IPCChannel.invoke(IPCChannel.java:48)
	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$1.doExecute(SchedulableEntityManagerProxy.java:119)
	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$EntityProxy.execute(SchedulableEntityManagerProxy.java:406)
	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit_aroundBody0(SchedulableEntityManagerProxy.java:121)
	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$AjcClosure1.run(SchedulableEntityManagerProxy.java:1)
	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
	at org.apache.falcon.aspect.AbstractFalconAspect.logAround(AbstractFalconAspect.java:50)
	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit(SchedulableEntityManagerProxy.java:106)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
	at org.apache.falcon.security.BasicAuthFilter$2.doFilter(BasicAuthFilter.java:156)
	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:372)
	at org.apache.falcon.security.BasicAuthFilter.doFilter(BasicAuthFilter.java:194)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
2014-03-11 12:20:28,557 ERROR - [1210313844@qtp-1428614609-0:jbonofre:POST//entities/submit/feed
de0f7af9-6825-4f3e-9406-cf57eed595f9] ~ Failure reason (FalconWebException:40)
java.lang.IllegalStateException: Cluster entity vertex must exist: local
	at org.apache.falcon.metadata.EntityRelationshipGraphBuilder.addRelationToCluster(EntityRelationshipGraphBuilder.java:131)
	at org.apache.falcon.metadata.EntityRelationshipGraphBuilder.addFeedEntity(EntityRelationshipGraphBuilder.java:72)
	at org.apache.falcon.metadata.MetadataMappingService.onAdd(MetadataMappingService.java:160)
	at org.apache.falcon.entity.store.ConfigurationStore.onAdd(ConfigurationStore.java:205)
	at org.apache.falcon.entity.store.ConfigurationStore.publish(ConfigurationStore.java:165)
	at org.apache.falcon.resource.AbstractEntityManager.submitInternal(AbstractEntityManager.java:332)
	at org.apache.falcon.resource.AbstractEntityManager.submit(AbstractEntityManager.java:153)
	at org.apache.falcon.resource.ConfigSyncService.submit(ConfigSyncService.java:44)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.falcon.resource.channel.IPCChannel.invoke(IPCChannel.java:48)
	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$1.doExecute(SchedulableEntityManagerProxy.java:119)
	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$EntityProxy.execute(SchedulableEntityManagerProxy.java:406)
	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit_aroundBody0(SchedulableEntityManagerProxy.java:121)
	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$AjcClosure1.run(SchedulableEntityManagerProxy.java:1)
	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
	at org.apache.falcon.aspect.AbstractFalconAspect.logAround(AbstractFalconAspect.java:50)
	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit(SchedulableEntityManagerProxy.java:106)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
	at org.apache.falcon.security.BasicAuthFilter$2.doFilter(BasicAuthFilter.java:156)
	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:372)
	at org.apache.falcon.security.BasicAuthFilter.doFilter(BasicAuthFilter.java:194)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
2014-03-11 12:20:28,558 ERROR - [1210313844@qtp-1428614609-0:jbonofre:POST//entities/submit/feed
de0f7af9-6825-4f3e-9406-cf57eed595f9] ~ Action failed: Bad Request
Error:Cluster entity vertex must exist: local
 (FalconWebException:66)
2014-03-11 12:20:28,558 INFO  - [1210313844@qtp-1428614609-0:jbonofre:POST//entities/submit/feed
de0f7af9-6825-4f3e-9406-cf57eed595f9] ~ {Action:submit, Dimensions:{entityType=feed, colo=NULL},
Status: FAILED, Time-taken:21130521 ns} (METRIC:32)
{code}

> Feed can't be submitted
> -----------------------
>
>                 Key: FALCON-346
>                 URL: https://issues.apache.org/jira/browse/FALCON-346
>             Project: Falcon
>          Issue Type: Bug
>          Components: feed
>    Affects Versions: 0.5
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 0.5
>
>
> With the latest build on master, I submitted the following cluster:
> {code}
> <cluster colo="local" description="Local cluster" name="local" xmlns="uri:falcon:cluster:0.1">
>     <interfaces>
>         <interface type="readonly" endpoint="hftp://localhost:50010" version="1.1.2"/>
>         <interface type="write" endpoint="hdfs://localhost:8020" version="1.1.2"/>
>         <interface type="execute" endpoint="localhost:8021" version="1.1.2"/>
>         <interface type="workflow" endpoint="http://localhost:11000/oozie/" version="4.0.0"/>
>         <interface type="messaging" endpoint="tcp://localhost:61616"  version="5.7.0"/>
>     </interfaces>
>     <locations>
>         <location name="staging" path="/falcon/staging"/>
>         <location name="temp" path="/falcon/tmp"/>
>         <location name="working" path="/falcon/working"/>
>     </locations>
>     <properties>
>     </properties>
> </cluster>
> {code}
> with:
> {code}
> bin/falcon entity -submit -type cluster -file local.xml
> {code}
> The submit is OK, and I can see the cluster in the Falcon configuration store:
> {code}
> bin/falcon entity -list -type cluster
> (cluster) local(null)
> {code}
> Now, I create the following feed:
> {code}
> <feed description="" name="output" xmlns="uri:falcon:feed:0.1">
>     <groups>output</groups>
>     <frequency>minutes(10)</frequency>
>     <clusters>
>         <cluster name="local">
>             <validity start="2012-07-20T03:00Z" end="2099-07-16T00:00Z"/>
>             <retention limit="hours(10)" action="delete"/>
>         </cluster>
>     </clusters>
>     <locations>
>         <location type="data" path="/data/output"/>
>     </locations>
>   
>     <ACL owner="jbonofre" group="supergroup" permission="0x644"/>
>     <schema location="none" provider="none"/>
> </feed>
> {code}
> However, when I try to submit this feed, I got:
> {code}
> bin/falcon entity -submit -type feed -file ~/demo/entity/output.xml 
> Error: Cluster entity vertex must exist: local
> {code}
> whereas local cluster exists.
> It seems that it's a regression introduced in EntityRelationshipGraphBuilder.
> I gonna take a look on that.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message