Hi, Can you try changing the single quotes only around pDate to double quotes "". Seems to be xml wrapping issue.
Thanks, Idris On Thursday 25 June 2015, Vincent Peplinski <[email protected]> wrote: > Thanks for the suggestion Oussama, unfortunately it did not resolve my > issue :( > > <param>byt_wrt=${fs:dirSize('/user/peppy/testing/p_dt=coord: > conf('pDate')')}</param> > > Resulted in the following: > > Error Code : EL_ERROR > Error Message : Encountered "pDate", expected one of [".", ">", "gt", > "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", ")", ",", "[", > "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||", "?"] > > On Thu, Jun 25, 2015 at 3:13 AM, Oussama Chougna <[email protected] > <javascript:;>> > wrote: > > > You should try this: > > If you are using a coordinator: > > > > > <param>byt_wrt=${fs:dirSize('/user/peppy/testing/p_dt=coord:conf('pDate')')}</param> > > If you only using a workflow: > > > > > <param>byt_wrt=${fs:dirSize('/user/peppy/testing/p_dt=wf:conf('pDate')')}</param> > > > > Nested EL does not work. > > > > > > Good luck, > > Cheers. > > Oussama Chougna > > > > > > > > > Date: Wed, 24 Jun 2015 20:49:32 +0000 > > > From: [email protected] > > > To: [email protected] <javascript:;> > > > Subject: Re: HDFS EL Function - fs:dirSize(String path) > > > > > > <param>byt_wrt=${fs:dirSize('/user/peppy/testing/p_dt=pDate')}</param> > . > > pDate without ${}. > > > From: Vincent Peplinski <[email protected] <javascript:;>> > > > To: [email protected] <javascript:;> > > > Sent: Wednesday, June 24, 2015 12:41 PM > > > Subject: HDFS EL Function - fs:dirSize(String path) > > > > > > Hello, > > > > > > I'm trying to use the fs:dirSize() HDFS EL function in one of my > > workflows > > > action nodes but I'm having some difficulty and I hope someone can > help. > > > > > > When I call the function using a literal string such as: > > > > > > > <param>byt_wrt=${fs:dirSize('/user/peppy/testing/p_dt=20150624')}</param> > > > > > > > > > The function returns the size of the file as expected. However; when I > > try > > > the following: > > > > > > > <param>byt_wrt=${fs:dirSize('/user/peppy/testing/p_dt=${pDate}')}</param> > > > > > > The workflow fails with an EL_ERROR - Illegal character in path index > 26 > > > /user/peppy/testing/p_dt=${pDate}. > > > > > > > > > How can I pass a variable to the function that will be properly > expanded? > > > > > > Thank you in advance. > > > > > > V. > > > > > > > > > > > > > >
