Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

String concatenation in Oozie expression language

avatar

Hi,

I'm trying to launch an action if and only if a file exists. I have a decision node with the following case:

${fs:exists(wf:actionData('hdfs-lookup')['outputPath']/2)}

The path I am checking is something like:

hdfs:///mypath/2

and

wf:actionData('hdfs-lookup')['outputPath']

is returning:

hdfs:///mypath

So I'm trying to concatenate this string with '/2'. Is there a way to do this?

I tried with simple quotes, plus operator, .concat, etc but no luck so far.

Thanks!

1 ACCEPTED SOLUTION

avatar

Answering my question, I was just not using the concat function correctly... the syntax is:

${fs:exists(concat(wf:actionData('hdfs-lookup')['outputPath'], '/2'))}

View solution in original post

1 REPLY 1

avatar

Answering my question, I was just not using the concat function correctly... the syntax is:

${fs:exists(concat(wf:actionData('hdfs-lookup')['outputPath'], '/2'))}