You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oozie.apache.org by renguihe <re...@ebupt.com> on 2013/11/16 14:51:22 UTC

problems with using Basic EL Functions

hi,
I want to get unique form of the outputdata uri.
In my coordinator.xml,I write like this:
       <dataset name="outputdata" frequency="${coord:days(1)}" initial-instance="${start}" timezone="UTC">
            <uri-template>${nameNode}/user/hadoop/examples/output-data/formal/${YEAR}/${MONTH}/${DAY}/</uri-template>
        </dataset>
  
In my job.properties,I write like this:
<argument>${replaceAll(${outputData},"[^0-9]",null)}</argument>

I wann to get "20131116" from in my action,but I get a error when I submit the coordinator:
Encountered "{", expected one of [".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", ")", ",", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||", ":", "(", "?"] 

can someone get me out?
thx!
 



HENRY

Re: problems with using Basic EL Functions

Posted by Serega Sheypak <se...@gmail.com>.
Did you try this:

<uri-template>${nameNode}/user/hadoop/examples/output-data/formal/${YEAR}${MONTH}${DAY}/</uri-template>
?
Don't understand the reason to replace path separators later...
16.11.2013 17:52 пользователь "renguihe" <re...@ebupt.com> написал:

> hi,
> I want to get unique form of the outputdata uri.
> In my coordinator.xml,I write like this:
>        <dataset name="outputdata" frequency="${coord:days(1)}"
> initial-instance="${start}" timezone="UTC">
>
> <uri-template>${nameNode}/user/hadoop/examples/output-data/formal/${YEAR}/${MONTH}/${DAY}/</uri-template>
>         </dataset>
>
> In my job.properties,I write like this:
> <argument>${replaceAll(${outputData},"[^0-9]",null)}</argument>
>
> I wann to get "20131116" from in my action,but I get a error when I submit
> the coordinator:
> Encountered "{", expected one of [".", ">", "gt", "<", "lt", "==", "eq",
> "<=", "le", ">=", "ge", "!=", "ne", ")", ",", "[", "+", "-", "*", "/",
> "div", "%", "mod", "and", "&&", "or", "||", ":", "(", "?"]
>
> can someone get me out?
> thx!
>
>
>
>
> HENRY