You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "michelle chiang (JIRA)" <ji...@apache.org> on 2012/11/27 23:38:58 UTC

[jira] [Created] (OOZIE-1094) credential cannot resolve variable

michelle chiang created OOZIE-1094:
--------------------------------------

             Summary: 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
            Priority: Minor


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

[jira] [Commented] (OOZIE-1094) credential cannot resolve variable

Posted by "Mona Chitnis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OOZIE-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509469#comment-13509469 ] 

Mona Chitnis commented on OOZIE-1094:
-------------------------------------

good job.+1
                
> 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

[jira] [Commented] (OOZIE-1094) credential cannot resolve variable

Posted by "Virag Kothari (JIRA)" <ji...@apache.org>.
    [ 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

[jira] [Updated] (OOZIE-1094) credential cannot resolve variable

Posted by "Virag Kothari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OOZIE-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Virag Kothari updated OOZIE-1094:
---------------------------------

    Attachment: OOZIE-1094.patch
    
> 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
>            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

[jira] [Commented] (OOZIE-1094) credential cannot resolve variable

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OOZIE-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509362#comment-13509362 ] 

Hadoop QA commented on OOZIE-1094:
----------------------------------

Testing JIRA OOZIE-1094

Cleaning local svn workspace

----------------------------

{color:green}+1 PATCH_APPLIES{color}
{color:green}+1 CLEAN{color}
{color:green}+1 RAW_PATCH_ANALYSIS{color}
.    {color:green}+1{color} the patch does not introduce any @author tags
.    {color:green}+1{color} the patch does not introduce any tabs
.    {color:green}+1{color} the patch does not introduce any trailing spaces
.    {color:green}+1{color} the patch does not introduce any line longer than 132
.    {color:green}+1{color} the patch does adds/modifies 1 testcase(s)
{color:green}+1 RAT{color}
.    {color:green}+1{color} the patch does not seem to introduce new RAT warnings
{color:green}+1 JAVADOC{color}
.    {color:green}+1{color} the patch does not seem to introduce new Javadoc warnings
{color:green}+1 COMPILE{color}
.    {color:green}+1{color} HEAD compiles
.    {color:green}+1{color} patch compiles
.    {color:green}+1{color} the patch does not seem to introduce new javac warnings
{color:green}+1 BACKWARDS_COMPATIBILITY{color}
.    {color:green}+1{color} the patch does not change any JPA Entity/Colum/Basic/Lob/Transient annotations
.    {color:green}+1{color} the patch does not modify JPA files
{color:green}+1 TESTS{color}
.    Tests run: 925
{color:green}+1 DISTRO{color}
.    {color:green}+1{color} distro tarball builds with the patch 

----------------------------
{color:green}*+1 Overall result, good!, no -1s*{color}


The full output of the test-patch run is available at

.   https://builds.apache.org/job/oozie-trunk-precommit-build/228/
                
> 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