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

Escape quotes whitespaces in Sqoop <command> field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.0
    • 5.2.0
    • None
    • None

    Description

      The current behavior of the Sqoop action is:

      The Sqoop command can be specified either using the command element or multiple arg elements.
      When using the command element, Oozie will split the command on every space into multiple arguments.
      When using the arg elements, Oozie will pass each argument value as an argument to Sqoop.
      

      This prevents the user to simply copy-paste the command worked in the shell into the workflow.xml.
      We should split the <command> field by taking quotes into account, similar to what OOZIE-2391
      did for the Spark action's <spark-opts> field.

      Attachments

        1. OOZIE-2949-06.patch
          24 kB
          Andras Salamon
        2. OOZIE-2949-05.patch
          24 kB
          Andras Salamon
        3. OOZIE-2949-04.patch
          25 kB
          Andras Salamon
        4. OOZIE-2949-03.patch
          24 kB
          Andras Salamon
        5. OOZIE-2949-02.patch
          14 kB
          Andras Salamon
        6. OOZIE-2949-01.patch
          7 kB
          Andras Salamon
        7. OOZIE-2949-0.patch
          8 kB
          Artem Ervits

        Issue Links

          Activity

            People

              asalamon74 Andras Salamon
              gezapeti Gézapeti
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: