[
https://issues.apache.org/jira/browse/OOZIE-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509459#comment-13509459
]
Virag Kothari commented on OOZIE-1094:
--------------------------------------
https://reviews.apache.org/r/8330/
> credential cannot resolve variable
> ----------------------------------
>
> Key: OOZIE-1094
> URL: https://issues.apache.org/jira/browse/OOZIE-1094
> Project: Oozie
> Issue Type: Bug
> Components: workflow
> Affects Versions: 3.3.0
> Reporter: michelle chiang
> Assignee: Virag Kothari
> Priority: Minor
> Attachments: OOZIE-1094.patch
>
>
> per OOZIE-870, workflow.xml:
> <credentials>
> <credential name='hcat.certs' type='hcat'>
> <property>
> <name>${uriprop}</name>
> <value>${hcatURI}</value>
> </property>
> <property>
> <name>hcat.metastore.principal</name>
> <value>${hcatPrincipal}</value>
> </property>
> </credential>
> </credentials>
> where in job configuration:
> <property>
> <name>uriprop</name>
> <value>hcat.metastore.uri</value>
> </property>
> then action fails because:
> ELException: variable [uriprop] cannot be resolved
> org.apache.oozie.action.ActionExecutorException: ELException: variable
> [uriprop] cannot be resolved
> at
> org.apache.oozie.action.ActionExecutor.convertException(ActionExecutor.java:394)
> at
> org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:738)
> at
> org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:888)
> at
> org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:211)
> at
> org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:59)
> at org.apache.oozie.command.XCommand.call(XCommand.java:277)
> at
> org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:326)
> at
> org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:255)
> at
> org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:175)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: javax.servlet.jsp.el.ELException: variable [uriprop] cannot be
> resolved
> at
> org.apache.oozie.util.ELEvaluator$Context.resolveVariable(ELEvaluator.java:106)
> at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
> at
> org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
> at
> org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
> at org.apache.oozie.util.ELEvaluator.evaluate(ELEvaluator.java:203)
> at
> org.apache.oozie.action.hadoop.JavaActionExecutor.getCredProperties(JavaActionExecutor.java:865)
> at
> org.apache.oozie.action.hadoop.JavaActionExecutor.getActionCredentialsProperties(JavaActionExecutor.java:833)
> at
> org.apache.oozie.action.hadoop.JavaActionExecutor.setCredentialPropertyToActionConf(JavaActionExecutor.java:779)
> at org.apache.oozie.action.hadoop.JavaActionExecutor.submit
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira