falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pallavi Rao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-1715) IllegalStateException in MetadataMappingService when entity is scheduled via native scheduler
Date Thu, 14 Jan 2016 08:35:39 GMT

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

Pallavi Rao commented on FALCON-1715:
-------------------------------------

The error is because Falcon server is run as "user1" and entities are being submitted as "user2"
(how it should be) and in native scheduler, Oozie workflow run is done as current logged in
user. This happens to be "user1" since Falcon process is the one that is running the workflow.
This should be changed to use "user2", the owner of the entity to address the problem.



> IllegalStateException in MetadataMappingService when entity is scheduled via native scheduler
> ---------------------------------------------------------------------------------------------
>
>                 Key: FALCON-1715
>                 URL: https://issues.apache.org/jira/browse/FALCON-1715
>             Project: Falcon
>          Issue Type: Bug
>          Components: scheduler
>    Affects Versions: 0.9
>            Reporter: Pragya Mittal
>            Assignee: Pallavi Rao
>
> When entity is scheduled via native scheduler, MetadataMappingServicefails with the following
error :
> {noformat}
> 2015-12-31 09:01:34,818 ERROR - [ActiveMQ Session Task-123:] ~ Error in listener org.apache.falcon.metadata.MetadataMappingService
(WorkflowJobEndNotificationService:245)
> org.apache.falcon.FalconException: java.lang.RuntimeException: java.lang.IllegalStateException:
USER entity vertex must exist dataqa
> 	at org.apache.falcon.metadata.MetadataMappingService.onSuccess(MetadataMappingService.java:274)
> 	at org.apache.falcon.workflow.WorkflowJobEndNotificationService.notifyWorkflowEnd(WorkflowJobEndNotificationService.java:235)
> 	at org.apache.falcon.workflow.WorkflowJobEndNotificationService.notifySuccess(WorkflowJobEndNotificationService.java:105)
> 	at org.apache.falcon.messaging.JMSMessageConsumer.invokeListener(JMSMessageConsumer.java:218)
> 	at org.apache.falcon.messaging.JMSMessageConsumer.onMessage(JMSMessageConsumer.java:121)
> 	at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1393)
> 	at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
> 	at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
> 	at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
> 	at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: USER entity vertex
must exist dataqa
> 	at com.tinkerpop.blueprints.util.TransactionRetryStrategy$AbstractRetryStrategy.execute(TransactionRetryStrategy.java:176)
> 	at com.tinkerpop.blueprints.util.TransactionRetryHelper.use(TransactionRetryHelper.java:115)
> 	at com.tinkerpop.blueprints.util.TransactionRetryHelper.exponentialBackoff(TransactionRetryHelper.java:94)
> 	at org.apache.falcon.metadata.MetadataMappingService.onSuccess(MetadataMappingService.java:263)
> 	... 12 more
> Caused by: java.lang.IllegalStateException: USER entity vertex must exist dataqa
> 	at org.apache.falcon.metadata.InstanceRelationshipGraphBuilder.addInstanceToEntity(InstanceRelationshipGraphBuilder.java:161)
> 	at org.apache.falcon.metadata.InstanceRelationshipGraphBuilder.addInstanceToEntity(InstanceRelationshipGraphBuilder.java:151)
> 	at org.apache.falcon.metadata.InstanceRelationshipGraphBuilder.addProcessInstance(InstanceRelationshipGraphBuilder.java:85)
> 	at org.apache.falcon.metadata.MetadataMappingService.onProcessInstanceExecuted(MetadataMappingService.java:320)
> 	at org.apache.falcon.metadata.MetadataMappingService.onSuccessfulExecution(MetadataMappingService.java:282)
> 	at org.apache.falcon.metadata.MetadataMappingService.access$100(MetadataMappingService.java:53)
> 	at org.apache.falcon.metadata.MetadataMappingService$3.execute(MetadataMappingService.java:267)
> 	at org.apache.falcon.metadata.MetadataMappingService$3.execute(MetadataMappingService.java:264)
> 	at com.tinkerpop.blueprints.util.TransactionRetryStrategy$AbstractRetryStrategy.execute(TransactionRetryStrategy.java:146)
> 	... 15 more
> 2015-12-31 09:01:34,819 DEBUG - [ActiveMQ Session Task-123:] ~ Retrieving details for
job 0000706-151230090106575-oozie-oozi-W  (OozieDAGEngine:284)
> {noformat}



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

Mime
View raw message