Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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'))}