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

Abhishek Bafna commented on OOZIE-2696:
---------------------------------------

Is these two are related: OOZIE-2553.

> Fix NPE when <credentials> is provided
> --------------------------------------
>
>                 Key: OOZIE-2696
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2696
>             Project: Oozie
>          Issue Type: Sub-task
>            Reporter: Peter Bacsko
>            Assignee: Peter Bacsko
>
> On the OYA branch, we receive an NPE if there is a {{<credentials>}} section 
> with a Java action (probably other actions are also affected, I've only seen 
> it with Java so far).
> The problem doesn't show up if we use the Hive action alone.
> {code}
> 2016-10-03 03:02:13,993 INFO org.apache.oozie.command.wf.ActionStartXCommand: 
> SERVER[oya-secure-1.gce.cloudera.com] USER[systest] GROUP[-] TOKEN[] 
> APP[Hive] JOB[0000000-161003023130362-oozie-oozi-W] 
> ACTION[0000000-161003023130362-oozie-oozi-W@java-fb27] Start action 
> [0000000-161003023130362-oozie-oozi-W@java-fb27] with user-retry state : 
> userRetryCount [0], userRetryMax [0], userRetryInterval [10]
> 2016-10-03 03:02:14,201 WARN org.apache.oozie.command.wf.ActionStartXCommand: 
> SERVER[oya-secure-1.gce.cloudera.com] USER[systest] GROUP[-] TOKEN[] 
> APP[Hive] JOB[0000000-161003023130362-oozie-oozi-W] 
> ACTION[0000000-161003023130362-oozie-oozi-W@java-fb27] Error starting action 
> [java-fb27]. ErrorType [ERROR], ErrorCode [JA021], Message [JA021: Could not 
> load credentials with name [null]].]
> org.apache.oozie.action.ActionExecutorException: JA021: Could not load 
> credentials with name [null]].
>       at 
> org.apache.oozie.action.hadoop.JavaActionExecutor.getCredProperties(JavaActionExecutor.java:1367)
>       at 
> org.apache.oozie.action.hadoop.JavaActionExecutor.getActionCredentialsProperties(JavaActionExecutor.java:1324)
>       at 
> org.apache.oozie.action.hadoop.JavaActionExecutor.setCredentialPropertyToActionConf(JavaActionExecutor.java:1260)
>       at 
> org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:1003)
>       at 
> org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1385)
>       at 
> org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:248)
>       at 
> org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:63)
>       at org.apache.oozie.command.XCommand.call(XCommand.java:287)
>       at 
> org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:331)
>       at 
> org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:260)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>       at 
> org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:178)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:745)
> {code}



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

Reply via email to