- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
String concatenation in Oozie expression language
- Labels:
-
Apache Oozie
Created ‎06-17-2016 08:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Created ‎06-17-2016 03:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Answering my question, I was just not using the concat function correctly... the syntax is:
${fs:exists(concat(wf:actionData('hdfs-lookup')['outputPath'], '/2'))}
Created ‎06-17-2016 03:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Answering my question, I was just not using the concat function correctly... the syntax is:
${fs:exists(concat(wf:actionData('hdfs-lookup')['outputPath'], '/2'))}
