You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Erik Bernhardson (Jira)" <ji...@apache.org> on 2019/10/18 00:13:00 UTC

[jira] [Created] (OOZIE-3550) Spark action incorrectly splits spark-opts with -- in value

Erik Bernhardson created OOZIE-3550:
---------------------------------------

             Summary: Spark action incorrectly splits spark-opts with -- in value
                 Key: OOZIE-3550
                 URL: https://issues.apache.org/jira/browse/OOZIE-3550
             Project: Oozie
          Issue Type: Bug
          Components: action
            Reporter: Erik Bernhardson


When providing the spark-opts option to the spark action, a double dash within values is incorrectly interpreted as the start of a new cli flag.  To reproduce add a test case to sharelib/spark/src/test/java/org/apache/oozie/action/hadoop/TestSparkOptionsSplitter.java expecting:

{{input: "--option val--ue"}}
{{ expect: Arrays.asList("--option", "val–ue")}}

Instead the result is:

{{java.lang.AssertionError: }}
{{Expecting:}}
{{ <["--option", "val", "--ue"]>}}
{{to contain exactly (and in same order):}}
{{ <["--option", "val--ue"]>}}
{{but some elements were not found:}}
{{ <["val--ue"]>}}
{{and others were not expected:}}
{{ <["val", "–ue"]>}}

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)