<?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 Re: How to dynamically supply directory attribute value from a external file for GETFILE ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174685#M37854</link>
    <description>&lt;P&gt;The Input Directory property of GetFile supports Expression Language so you can reference a system property like ${my.directory} and define my.directory in bootstrap.conf by adding another java arg like:&lt;/P&gt;&lt;PRE&gt;java.arg.15=-Dmy.directory=/foo&lt;/PRE&gt;&lt;P&gt;Then you can have different bootstrap files per environment.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2016 21:43:52 GMT</pubDate>
    <dc:creator>bbende</dc:creator>
    <dc:date>2016-08-15T21:43:52Z</dc:date>
    <item>
      <title>How to dynamically supply directory attribute value from a external file for GETFILE ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174684#M37853</link>
      <description>&lt;P&gt;I have a need to supply directory path for GETFILE processor from a file, which would be maintained as property file based on environment.. like landing,staging etc., Please help me if it is achievable and how? Can we use distributedCache ?&lt;/P&gt;&lt;P&gt;Also, Please provide DistributedMapCache examples.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 21:36:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174684#M37853</guid>
      <dc:creator>2hanu_valluri</dc:creator>
      <dc:date>2016-08-15T21:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically supply directory attribute value from a external file for GETFILE ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174685#M37854</link>
      <description>&lt;P&gt;The Input Directory property of GetFile supports Expression Language so you can reference a system property like ${my.directory} and define my.directory in bootstrap.conf by adding another java arg like:&lt;/P&gt;&lt;PRE&gt;java.arg.15=-Dmy.directory=/foo&lt;/PRE&gt;&lt;P&gt;Then you can have different bootstrap files per environment.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 21:43:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174685#M37854</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2016-08-15T21:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically supply directory attribute value from a external file for GETFILE ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174686#M37855</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/363/bbende.html" nodeid="363"&gt;@Bryan Bende&lt;/A&gt; for quick reply! &lt;/P&gt;&lt;P&gt;In addition to the above question, how can we pass the file name if a template is created and needs to be used by different users and they want to pass their own path? &lt;/P&gt;&lt;P&gt;The idea here is to get file from local path and put it in HDFS. I have created a template, which should be used by different users based on their need by passing the required path for both GetFile, PutFile. As bootstrap is common config, how can we handle this scenario? Users might not be using the UI.. we will be supplying the RET call to start/stop the process group.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 22:01:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174686#M37855</guid>
      <dc:creator>2hanu_valluri</dc:creator>
      <dc:date>2016-08-15T22:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically supply directory attribute value from a external file for GETFILE ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174687#M37856</link>
      <description>&lt;P&gt;Is each user importing the template into a separate NiFi instance? or is there one NiFi instance with multiple users who all import the same template and want to retrieve files from different directories?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 22:21:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174687#M37856</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2016-08-15T22:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically supply directory attribute value from a external file for GETFILE ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174688#M37857</link>
      <description>&lt;P&gt;it is same NiFi instance with multiple users.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 23:51:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174688#M37857</guid>
      <dc:creator>2hanu_valluri</dc:creator>
      <dc:date>2016-08-15T23:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically supply directory attribute value from a external file for GETFILE ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174689#M37858</link>
      <description>&lt;P&gt;In that scenario there is always going to be something you have to set that is specific to the user. I think the best approach might be to use the REST API to change the value of GetFile's directory after the user imported the template and set it to the user's input directory.  &lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 00:56:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-dynamically-supply-directory-attribute-value-from-a/m-p/174689#M37858</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2016-08-16T00:56:18Z</dc:date>
    </item>
  </channel>
</rss>

