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

Oozie cannot handle environment variables with key=value content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.2.1
    • 5.3.0
    • core
    • None

    Description

      In most of the Oozie actions we can set custom environment variables configured in workflow.xml / job.properties. This works in most of the cases but there is a failure scenario:

      job.properties:
      
      oozieLauncherEnv=HADOOP_CLIENT_OPTS=-Dfile.encoding=UTF-8
      
      workflow.xml:
      
      <property>
        <name>oozie.launcher.env</name>
        <value>${oozieLauncherEnv}</value>
      </property>

      With this setup Oozie throws an error:

      Caused by: java.lang.IllegalArgumentException: Invalid launcher setting for environment variables: &quot;HADOOP_CLIENT_OPTS=-Dfile.encoding=UTF-8&quot;. &lt;env&gt; should contain a list of ENV_VAR_NAME=VALUE separated by the ':' character. Example on Unix: A=foo1:B=foo2

      In my opinion Oozie should handle properties' value which contains (multiple) key=value content.

      Attachments

        1. OOZIE-3661-001.patch
          3 kB
          Dénes Bodó

        Activity

          People

            dionusos Dénes Bodó
            dionusos Dénes Bodó
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: