You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Mona Chitnis (JIRA)" <ji...@apache.org> on 2012/04/25 00:14:06 UTC
[jira] [Created] (OOZIE-820) Shell action to support env-var value
with = sign
Mona Chitnis created OOZIE-820:
----------------------------------
Summary: Shell action to support env-var value with = sign
Key: OOZIE-820
URL: https://issues.apache.org/jira/browse/OOZIE-820
Project: Oozie
Issue Type: Bug
Components: action
Affects Versions: 3.2.0
Reporter: Mona Chitnis
Assignee: Mona Chitnis
Fix For: 3.2.0
For shell action, the env-var's value is truncated by =. for example, the shell action in
workflow.xml:
<shell xmlns="uri:oozie:shell-action:0.1">
... ...
<exec>${SCRIPT}</exec>
<env-var>myVar="v=123;t=456;s=abc--"</env-var>
<file>${SCRIPT}#${SCRIPT}</file>
<capture-output/>
then the ${myVar} becomes:
myVar="v
expect it to be: ${myVar} equals v=123;t=456;s=abc--
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (OOZIE-820) Shell action to support env-var value
with = sign
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OOZIE-820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur resolved OOZIE-820.
--------------------------------------
Resolution: Fixed
Fix Version/s: (was: 3.2.0)
trunk
thanks Mona. Committed to trunk
> Shell action to support env-var value with = sign
> -------------------------------------------------
>
> Key: OOZIE-820
> URL: https://issues.apache.org/jira/browse/OOZIE-820
> Project: Oozie
> Issue Type: Bug
> Components: action
> Affects Versions: 3.2.0
> Reporter: Mona Chitnis
> Assignee: Mona Chitnis
> Labels: oozie
> Fix For: trunk
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> For shell action, the env-var's value is truncated by =. for example, the shell action in
> workflow.xml:
> <shell xmlns="uri:oozie:shell-action:0.1">
> ... ...
> <exec>${SCRIPT}</exec>
> <env-var>myVar="v=123;t=456;s=abc--"</env-var>
> <file>${SCRIPT}#${SCRIPT}</file>
> <capture-output/>
> then the ${myVar} becomes:
> myVar="v
> expect it to be: ${myVar} equals v=123;t=456;s=abc--
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OOZIE-820) Shell action to support env-var
value with = sign
Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OOZIE-820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262120#comment-13262120 ]
jiraposter@reviews.apache.org commented on OOZIE-820:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4863/#review7244
-----------------------------------------------------------
Ship it!
+1
- Santhosh
On 2012-04-24 22:22:06, Mona Chitnis wrote:
bq.
bq. -----------------------------------------------------------
bq. This is an automatically generated e-mail. To reply, visit:
bq. https://reviews.apache.org/r/4863/
bq. -----------------------------------------------------------
bq.
bq. (Updated 2012-04-24 22:22:06)
bq.
bq.
bq. Review request for oozie.
bq.
bq.
bq. Summary
bq. -------
bq.
bq. For shell action, the env-var's value is truncated by =. for example, the shell action in
bq. workflow.xml:
bq. <shell xmlns="uri:oozie:shell-action:0.1">
bq. ... ...
bq. <exec>${SCRIPT}</exec>
bq. <env-var>myVar="v=123;t=456;s=abc--"</env-var>
bq. <file>${SCRIPT}#${SCRIPT}</file>
bq. <capture-output/>
bq.
bq. then the ${myVar} becomes:
bq. myVar="v
bq.
bq. expect it to be: ${myVar} equals v=123;t=456;s=abc--
bq.
bq.
bq. Minor change required in ShellMain to limit string splitting to 1 occurrence of regex "="
bq.
bq.
bq. This addresses bug OOZIE-820.
bq. https://issues.apache.org/jira/browse/OOZIE-820
bq.
bq.
bq. Diffs
bq. -----
bq.
bq. trunk/core/src/main/java/org/apache/oozie/action/hadoop/ShellMain.java 1326832
bq. trunk/core/src/test/java/org/apache/oozie/action/hadoop/TestShellActionExecutor.java 1326832
bq.
bq. Diff: https://reviews.apache.org/r/4863/diff
bq.
bq.
bq. Testing
bq. -------
bq.
bq. unit tests pass
bq.
bq.
bq. Thanks,
bq.
bq. Mona
bq.
bq.
> Shell action to support env-var value with = sign
> -------------------------------------------------
>
> Key: OOZIE-820
> URL: https://issues.apache.org/jira/browse/OOZIE-820
> Project: Oozie
> Issue Type: Bug
> Components: action
> Affects Versions: 3.2.0
> Reporter: Mona Chitnis
> Assignee: Mona Chitnis
> Labels: oozie
> Fix For: 3.2.0
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> For shell action, the env-var's value is truncated by =. for example, the shell action in
> workflow.xml:
> <shell xmlns="uri:oozie:shell-action:0.1">
> ... ...
> <exec>${SCRIPT}</exec>
> <env-var>myVar="v=123;t=456;s=abc--"</env-var>
> <file>${SCRIPT}#${SCRIPT}</file>
> <capture-output/>
> then the ${myVar} becomes:
> myVar="v
> expect it to be: ${myVar} equals v=123;t=456;s=abc--
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (OOZIE-820) Shell action to support env-var value
with = sign
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OOZIE-820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur updated OOZIE-820:
-------------------------------------
Fix Version/s: (was: trunk)
3.2.0
> Shell action to support env-var value with = sign
> -------------------------------------------------
>
> Key: OOZIE-820
> URL: https://issues.apache.org/jira/browse/OOZIE-820
> Project: Oozie
> Issue Type: Bug
> Components: action
> Affects Versions: 3.2.0
> Reporter: Mona Chitnis
> Assignee: Mona Chitnis
> Labels: oozie
> Fix For: 3.2.0
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> For shell action, the env-var's value is truncated by =. for example, the shell action in
> workflow.xml:
> <shell xmlns="uri:oozie:shell-action:0.1">
> ... ...
> <exec>${SCRIPT}</exec>
> <env-var>myVar="v=123;t=456;s=abc--"</env-var>
> <file>${SCRIPT}#${SCRIPT}</file>
> <capture-output/>
> then the ${myVar} becomes:
> myVar="v
> expect it to be: ${myVar} equals v=123;t=456;s=abc--
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OOZIE-820) Shell action to support env-var
value with = sign
Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OOZIE-820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261087#comment-13261087 ]
jiraposter@reviews.apache.org commented on OOZIE-820:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4863/
-----------------------------------------------------------
Review request for oozie.
Summary
-------
For shell action, the env-var's value is truncated by =. for example, the shell action in
workflow.xml:
<shell xmlns="uri:oozie:shell-action:0.1">
... ...
<exec>${SCRIPT}</exec>
<env-var>myVar="v=123;t=456;s=abc--"</env-var>
<file>${SCRIPT}#${SCRIPT}</file>
<capture-output/>
then the ${myVar} becomes:
myVar="v
expect it to be: ${myVar} equals v=123;t=456;s=abc--
Minor change required in ShellMain to limit string splitting to 1 occurrence of regex "="
This addresses bug OOZIE-820.
https://issues.apache.org/jira/browse/OOZIE-820
Diffs
-----
trunk/core/src/main/java/org/apache/oozie/action/hadoop/ShellMain.java 1326832
trunk/core/src/test/java/org/apache/oozie/action/hadoop/TestShellActionExecutor.java 1326832
Diff: https://reviews.apache.org/r/4863/diff
Testing
-------
unit tests pass
Thanks,
Mona
> Shell action to support env-var value with = sign
> -------------------------------------------------
>
> Key: OOZIE-820
> URL: https://issues.apache.org/jira/browse/OOZIE-820
> Project: Oozie
> Issue Type: Bug
> Components: action
> Affects Versions: 3.2.0
> Reporter: Mona Chitnis
> Assignee: Mona Chitnis
> Labels: oozie
> Fix For: 3.2.0
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> For shell action, the env-var's value is truncated by =. for example, the shell action in
> workflow.xml:
> <shell xmlns="uri:oozie:shell-action:0.1">
> ... ...
> <exec>${SCRIPT}</exec>
> <env-var>myVar="v=123;t=456;s=abc--"</env-var>
> <file>${SCRIPT}#${SCRIPT}</file>
> <capture-output/>
> then the ${myVar} becomes:
> myVar="v
> expect it to be: ${myVar} equals v=123;t=456;s=abc--
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OOZIE-820) Shell action to support env-var
value with = sign
Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OOZIE-820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264002#comment-13264002 ]
jiraposter@reviews.apache.org commented on OOZIE-820:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4863/#review7327
-----------------------------------------------------------
Ship it!
- Alejandro
On 2012-04-24 22:22:06, Mona Chitnis wrote:
bq.
bq. -----------------------------------------------------------
bq. This is an automatically generated e-mail. To reply, visit:
bq. https://reviews.apache.org/r/4863/
bq. -----------------------------------------------------------
bq.
bq. (Updated 2012-04-24 22:22:06)
bq.
bq.
bq. Review request for oozie.
bq.
bq.
bq. Summary
bq. -------
bq.
bq. For shell action, the env-var's value is truncated by =. for example, the shell action in
bq. workflow.xml:
bq. <shell xmlns="uri:oozie:shell-action:0.1">
bq. ... ...
bq. <exec>${SCRIPT}</exec>
bq. <env-var>myVar="v=123;t=456;s=abc--"</env-var>
bq. <file>${SCRIPT}#${SCRIPT}</file>
bq. <capture-output/>
bq.
bq. then the ${myVar} becomes:
bq. myVar="v
bq.
bq. expect it to be: ${myVar} equals v=123;t=456;s=abc--
bq.
bq.
bq. Minor change required in ShellMain to limit string splitting to 1 occurrence of regex "="
bq.
bq.
bq. This addresses bug OOZIE-820.
bq. https://issues.apache.org/jira/browse/OOZIE-820
bq.
bq.
bq. Diffs
bq. -----
bq.
bq. trunk/core/src/main/java/org/apache/oozie/action/hadoop/ShellMain.java 1326832
bq. trunk/core/src/test/java/org/apache/oozie/action/hadoop/TestShellActionExecutor.java 1326832
bq.
bq. Diff: https://reviews.apache.org/r/4863/diff
bq.
bq.
bq. Testing
bq. -------
bq.
bq. unit tests pass
bq.
bq.
bq. Thanks,
bq.
bq. Mona
bq.
bq.
> Shell action to support env-var value with = sign
> -------------------------------------------------
>
> Key: OOZIE-820
> URL: https://issues.apache.org/jira/browse/OOZIE-820
> Project: Oozie
> Issue Type: Bug
> Components: action
> Affects Versions: 3.2.0
> Reporter: Mona Chitnis
> Assignee: Mona Chitnis
> Labels: oozie
> Fix For: 3.2.0
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> For shell action, the env-var's value is truncated by =. for example, the shell action in
> workflow.xml:
> <shell xmlns="uri:oozie:shell-action:0.1">
> ... ...
> <exec>${SCRIPT}</exec>
> <env-var>myVar="v=123;t=456;s=abc--"</env-var>
> <file>${SCRIPT}#${SCRIPT}</file>
> <capture-output/>
> then the ${myVar} becomes:
> myVar="v
> expect it to be: ${myVar} equals v=123;t=456;s=abc--
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (OOZIE-820) Shell action to support env-var value
with = sign
Posted by "Mona Chitnis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OOZIE-820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mona Chitnis updated OOZIE-820:
-------------------------------
For the patch committed in trunk with this JIRA ID (also available under the same JIRA ID in Apache ReviewBoard system), I grant license to ASF for inclusion in ASF works (as per the Apache License §5)
> Shell action to support env-var value with = sign
> -------------------------------------------------
>
> Key: OOZIE-820
> URL: https://issues.apache.org/jira/browse/OOZIE-820
> Project: Oozie
> Issue Type: Bug
> Components: action
> Affects Versions: 3.2.0
> Reporter: Mona Chitnis
> Assignee: Mona Chitnis
> Labels: oozie
> Fix For: 3.2.0
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> For shell action, the env-var's value is truncated by =. for example, the shell action in
> workflow.xml:
> <shell xmlns="uri:oozie:shell-action:0.1">
> ... ...
> <exec>${SCRIPT}</exec>
> <env-var>myVar="v=123;t=456;s=abc--"</env-var>
> <file>${SCRIPT}#${SCRIPT}</file>
> <capture-output/>
> then the ${myVar} becomes:
> myVar="v
> expect it to be: ${myVar} equals v=123;t=456;s=abc--
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OOZIE-820) Shell action to support env-var
value with = sign
Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OOZIE-820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261932#comment-13261932 ]
jiraposter@reviews.apache.org commented on OOZIE-820:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4863/#review7233
-----------------------------------------------------------
Ship it!
Looks good
- Virag
On 2012-04-24 22:22:06, Mona Chitnis wrote:
bq.
bq. -----------------------------------------------------------
bq. This is an automatically generated e-mail. To reply, visit:
bq. https://reviews.apache.org/r/4863/
bq. -----------------------------------------------------------
bq.
bq. (Updated 2012-04-24 22:22:06)
bq.
bq.
bq. Review request for oozie.
bq.
bq.
bq. Summary
bq. -------
bq.
bq. For shell action, the env-var's value is truncated by =. for example, the shell action in
bq. workflow.xml:
bq. <shell xmlns="uri:oozie:shell-action:0.1">
bq. ... ...
bq. <exec>${SCRIPT}</exec>
bq. <env-var>myVar="v=123;t=456;s=abc--"</env-var>
bq. <file>${SCRIPT}#${SCRIPT}</file>
bq. <capture-output/>
bq.
bq. then the ${myVar} becomes:
bq. myVar="v
bq.
bq. expect it to be: ${myVar} equals v=123;t=456;s=abc--
bq.
bq.
bq. Minor change required in ShellMain to limit string splitting to 1 occurrence of regex "="
bq.
bq.
bq. This addresses bug OOZIE-820.
bq. https://issues.apache.org/jira/browse/OOZIE-820
bq.
bq.
bq. Diffs
bq. -----
bq.
bq. trunk/core/src/main/java/org/apache/oozie/action/hadoop/ShellMain.java 1326832
bq. trunk/core/src/test/java/org/apache/oozie/action/hadoop/TestShellActionExecutor.java 1326832
bq.
bq. Diff: https://reviews.apache.org/r/4863/diff
bq.
bq.
bq. Testing
bq. -------
bq.
bq. unit tests pass
bq.
bq.
bq. Thanks,
bq.
bq. Mona
bq.
bq.
> Shell action to support env-var value with = sign
> -------------------------------------------------
>
> Key: OOZIE-820
> URL: https://issues.apache.org/jira/browse/OOZIE-820
> Project: Oozie
> Issue Type: Bug
> Components: action
> Affects Versions: 3.2.0
> Reporter: Mona Chitnis
> Assignee: Mona Chitnis
> Labels: oozie
> Fix For: 3.2.0
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> For shell action, the env-var's value is truncated by =. for example, the shell action in
> workflow.xml:
> <shell xmlns="uri:oozie:shell-action:0.1">
> ... ...
> <exec>${SCRIPT}</exec>
> <env-var>myVar="v=123;t=456;s=abc--"</env-var>
> <file>${SCRIPT}#${SCRIPT}</file>
> <capture-output/>
> then the ${myVar} becomes:
> myVar="v
> expect it to be: ${myVar} equals v=123;t=456;s=abc--
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira