Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2748

NPE in LauncherMapper.printArgs()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 5.0.0b1, 4.3.1
    • Component/s: core
    • Labels:
      None

      Description

      If we define argument for the Spark action like this

              <spark xmlns="uri:oozie:spark-action:0.2">
                  <job-tracker>${jobTracker}</job-tracker>
                  <name-node>${nameNode}</name-node>
                  <configuration>
                      <property>
                          <name>oozie.use.system.libpath</name>
                          <value>true</value>
                      </property>
                      <property>
                          <name></name>
                          <value></value>
                      </property>
                  </configuration>
                  <master>yarn-cluster</master>
                  <mode>cluster</mode>
                  <name>Something</name>
                  <class&gt;package.of.my.Class</class&gt;
                  <jar>${nameNode}/myjar.jar</jar>
                  <arg></arg>    <---  cause of the NPE
              </spark>
      

      then we get a NullPointerException in LauncherMapper:

      Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.SparkMain], exception invoking main(), null
      java.lang.NullPointerException
      	at org.apache.oozie.action.hadoop.LauncherMapper.printArgs(LauncherMapper.java:627)
      	at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:212)
      	at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
      ...
      

        Attachments

        1. OOZIE-2748-006.patch
          7 kB
          Peter Bacsko
        2. OOZIE-2748-005.patch
          7 kB
          Peter Bacsko
        3. OOZIE-2748-004.patch
          7 kB
          Peter Bacsko
        4. OOZIE-2748-003.patch
          4 kB
          Peter Bacsko
        5. OOZIE-2748-002.patch
          3 kB
          Peter Bacsko
        6. OOZIE-2748-001.patch
          3 kB
          Peter Bacsko

          Issue Links

            Activity

              People

              • Assignee:
                pbacsko Peter Bacsko
                Reporter:
                pbacsko Peter Bacsko
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: