<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question String concatenation in Oozie expression language in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/String-concatenation-in-Oozie-expression-language/m-p/144497#M32249</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to launch an action if and only if a file exists. I have a decision node with the following case:&lt;/P&gt;&lt;PRE&gt;${fs:exists(wf:actionData('hdfs-lookup')['outputPath']/2)}&lt;/PRE&gt;&lt;P&gt;The path I am checking is something like:&lt;/P&gt;&lt;PRE&gt;hdfs:///mypath/2&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;wf:actionData('hdfs-lookup')['outputPath']&lt;/PRE&gt;&lt;P&gt;is returning:&lt;/P&gt;&lt;PRE&gt;hdfs:///mypath&lt;/PRE&gt;&lt;P&gt;So I'm trying to concatenate this string with '/2'. Is there a way to do this?&lt;/P&gt;&lt;P&gt;I tried with simple quotes, plus operator, .concat, etc but no luck so far.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2016 15:25:18 GMT</pubDate>
    <dc:creator>pvillard</dc:creator>
    <dc:date>2016-06-17T15:25:18Z</dc:date>
    <item>
      <title>String concatenation in Oozie expression language</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/String-concatenation-in-Oozie-expression-language/m-p/144497#M32249</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to launch an action if and only if a file exists. I have a decision node with the following case:&lt;/P&gt;&lt;PRE&gt;${fs:exists(wf:actionData('hdfs-lookup')['outputPath']/2)}&lt;/PRE&gt;&lt;P&gt;The path I am checking is something like:&lt;/P&gt;&lt;PRE&gt;hdfs:///mypath/2&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;wf:actionData('hdfs-lookup')['outputPath']&lt;/PRE&gt;&lt;P&gt;is returning:&lt;/P&gt;&lt;PRE&gt;hdfs:///mypath&lt;/PRE&gt;&lt;P&gt;So I'm trying to concatenate this string with '/2'. Is there a way to do this?&lt;/P&gt;&lt;P&gt;I tried with simple quotes, plus operator, .concat, etc but no luck so far.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 15:25:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/String-concatenation-in-Oozie-expression-language/m-p/144497#M32249</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-06-17T15:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: String concatenation in Oozie expression language</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/String-concatenation-in-Oozie-expression-language/m-p/144498#M32250</link>
      <description>&lt;P&gt;Answering my question, I was just not using the concat function correctly... the syntax is:&lt;/P&gt;&lt;PRE&gt;${fs:exists(concat(wf:actionData('hdfs-lookup')['outputPath'], '/2'))}&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Jun 2016 22:18:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/String-concatenation-in-Oozie-expression-language/m-p/144498#M32250</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-06-17T22:18:54Z</dc:date>
    </item>
  </channel>
</rss>

