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

Oozie is Unable to handle Spaces in file/archive tag.

    XMLWordPrintableJSON

    Details

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

      Hadoop 2.6,Oozie 4.1, Hortonworks2.2

    • Flags:
      Important

      Description

      Oozie file tag is unable to handle white spaces and other special characters.

      Error -
      Caused by: java.lang.NullPointerException
      at org.apache.oozie.action.hadoop.JavaActionExecutor.addToCache(JavaActionExecutor.java:529)
      at org.apache.oozie.action.hadoop.JavaActionExecutor.setLibFilesArchives(JavaActionExecutor.java:678)
      at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:884)

      Sample XML File –

      <?xml version="1.0" ?>
      <workflow-app xmlns="uri:oozie:workflow:0.4" xmlns:ns5="uri:oozie:shell-action:0.2"
      xmlns:ns4="uri:oozie:workflow:0.4" xmlns:ns3="uri:oozie:sqoop-action:0.2"
      xmlns:ns2="uri:oozie:hive-action:0.3" name="test-shell-space">
      <start to="shell1"></start>
      <action name="shell1">
      <shell xmlns="uri:oozie:shell-action:0.2">
      <job-tracker>${wf_hadoop_resourceManager}</job-tracker>
      <name-node>${wf_hadoop_nameNode}</name-node>
      <exec>shell 1.sh</exec>
      <file>/user/map-dev/test-case-dir/shell/script/shell 1.sh</file>
      </shell>
      <ok to="end"></ok>
      <error to="kill"></error>
      </action>
      <kill name="kill">
      <message>shell-decision job failed</message>
      </kill>
      <end name="end"></end>
      </workflow-app>

        Attachments

        1. OOZIE-2387-01.patch
          2 kB
          Attila Sasvári
        2. OOZIE-2387-02.patch
          4 kB
          Attila Sasvári
        3. OOZIE-2387-03.patch
          3 kB
          Attila Sasvári
        4. OOZIE-2387-04.patch
          3 kB
          Attila Sasvári

          Activity

            People

            • Assignee:
              asasvari Attila Sasvári
              Reporter:
              blue.4209211 shiv pratap singh
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: