[ 
https://issues.apache.org/jira/browse/OOZIE-2769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15814420#comment-15814420
 ] 

Peter Cseh commented on OOZIE-2769:
-----------------------------------

Yes, that would be a great place for the test. Also, adding other commands like 
thouchz is a good idea.

Some tests are still failing. 
The code seem fine now, the problem is in the xsd / xml files.
# the schema version in {{/core/src/test/resources/wf-schema-valid.xml}} have 
to be changed from 0.1 to 0.5
# the {{<setrep>}} element in {{/core/src/test/resources/wf-schema-valid.xml}} 
needs the {{replication-factor}} attribute.
# in {{oozie-workflow-0.5.xsd}} the SETREP type need a path attribute to work, 
preferably before the {{replication-factor}}. You may copy it over from the 
TOUCHZ type.
# I would change the type of the {{replication-factor}} from {{xs:string}} to 
{{"xs:unsignedShort"}} or {{xs:short}}
# the documentation of the setrep command is not correct in 
WorkflowFunctionalSpec, it does not have the number after the 
{{replication-factor}} attribute


> Extend FS action to allow setrep on a file
> ------------------------------------------
>
>                 Key: OOZIE-2769
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2769
>             Project: Oozie
>          Issue Type: Improvement
>          Components: action, core
>    Affects Versions: 4.2.0
>            Reporter: Artem Ervits
>            Priority: Minor
>              Labels: easyfix, features, patch
>             Fix For: trunk
>
>         Attachments: OOZIE-2769-0.patch, OOZIE-2769-1.patch, 
> OOZIE-2769-2.patch, OOZIE-2769-3.patch, OOZIE-2769-4.patch
>
>
> Today, Oozie FS action can only do delete/move/chgrp/chmod, this feature 
> extends FS action to allow for setrep on an HDFS file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to