XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • None
    • None
    • None
    • None

    Description

      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.

      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)
      

      Attachments

        Activity

          People

            pbacsko Peter Bacsko
            pbacsko Peter Bacsko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: