<?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 Read Configuration properties in QueryDatabaseTable in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233710#M195533</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I started exploring Nifi. I created my first workflow to read the data from MySQL database and put that data into S3 bucket. So far everything is going fine and I'm able to read the data and place in S3. I hard coded the properties(Table Name, Database and few other) . Now I want to make workflow to run for multiple tables, so I need to read the properties from some configuration and pass table one by one to the workflow. I'm using QueryDatabaseTable processor to achieve the requirement. Could someone help me out on reading the comma separated table names and pass this table names one by one to QueryDatabaseTable as an argument to pull the data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64494-screen-shot-2018-03-05-at-12043-pm.png" style="width: 768px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14711i46E8E4D609C9EAB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64494-screen-shot-2018-03-05-at-12043-pm.png" alt="64494-screen-shot-2018-03-05-at-12043-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 00:10:49 GMT</pubDate>
    <dc:creator>ramesh_ganginen</dc:creator>
    <dc:date>2019-08-18T00:10:49Z</dc:date>
    <item>
      <title>Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233710#M195533</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I started exploring Nifi. I created my first workflow to read the data from MySQL database and put that data into S3 bucket. So far everything is going fine and I'm able to read the data and place in S3. I hard coded the properties(Table Name, Database and few other) . Now I want to make workflow to run for multiple tables, so I need to read the properties from some configuration and pass table one by one to the workflow. I'm using QueryDatabaseTable processor to achieve the requirement. Could someone help me out on reading the comma separated table names and pass this table names one by one to QueryDatabaseTable as an argument to pull the data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64494-screen-shot-2018-03-05-at-12043-pm.png" style="width: 768px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14711i46E8E4D609C9EAB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64494-screen-shot-2018-03-05-at-12043-pm.png" alt="64494-screen-shot-2018-03-05-at-12043-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 00:10:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233710#M195533</guid>
      <dc:creator>ramesh_ganginen</dc:creator>
      <dc:date>2019-08-18T00:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233711#M195534</link>
      <description>&lt;P&gt;QueryDatabaseTable does not support incoming connections, so you wouldn't be able to support multiple tables. The "Table Name" property does support NiFi Expression Language, but that is so you can migrate flows from dev to test to production using different table names, each environment would have its own (static) variable set.&lt;/P&gt;&lt;P&gt;Instead, you can use &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.GenerateTableFetch/index.html" target="_blank"&gt;GenerateTableFetch&lt;/A&gt;, it supports incoming connections and thus you can use flow file attributes in the expression(s) for Table Name, Columns to Return, Maximum-value Columns, etc. It works like QueryDatabaseTable, but instead of generating and executing the SQL, it only generates the SQL statements. This allows you to send the statements downstream to something like ExecuteSQL, possibly distributing the flow files among nodes in the cluster (using a Remote Process Group -&amp;gt; Input Port, if you have a cluster vs a standalone NiFi instance).&lt;/P&gt;&lt;P&gt;You can populate your incoming flow files from wherever you get your configuration (ListFile -&amp;gt; FetchFile if it is a file on disk, &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.ListDatabaseTables/index.html" target="_blank"&gt;ListDatabaseTables&lt;/A&gt; if you want to get a list of tables from the database itself).&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 22:42:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233711#M195534</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2018-03-05T22:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233712#M195535</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/641/mburgess.html" rel="nofollow noopener noreferrer" target="_blank"&gt;@Matt Burgess&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the suggestions. As per your suggestion, I made changes and the flow now looks like below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64505-screen-shot-2018-03-06-at-52723-pm.png" style="width: 966px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14708i508FCBD59A58AAC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64505-screen-shot-2018-03-06-at-52723-pm.png" alt="64505-screen-shot-2018-03-06-at-52723-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here, Input table has 2500+ records and I'm splitting the data into 400 records per file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64508-screen-shot-2018-03-06-at-52943-pm.png" style="width: 765px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14709i6F877D597D9EB95A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64508-screen-shot-2018-03-06-at-52943-pm.png" alt="64508-screen-shot-2018-03-06-at-52943-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The GenerateFlow Table is generating 7 files and for all the files it's giving the same name(not sure how the filename is generating by default). As part of later stages(PutFile) I'm writing this data(files) into disk, It's giving error saying it can't write the same file name 7 times(only one file writing to disk and failing to write remaining 6 files). I want to give different file names for each file. Any suggestion please.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64507-screen-shot-2018-03-06-at-53110-pm.png" style="width: 1214px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14710i518B604795A8729E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64507-screen-shot-2018-03-06-at-53110-pm.png" alt="64507-screen-shot-2018-03-06-at-53110-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/64510-screen-shot-2018-03-06-at-52723-pm.png" target="_blank"&gt;screen-shot-2018-03-06-at-52723-pm.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/64511-screen-shot-2018-03-06-at-52943-pm.png" target="_blank"&gt;screen-shot-2018-03-06-at-52943-pm.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/64512-screen-shot-2018-03-06-at-53110-pm.png" target="_blank"&gt;screen-shot-2018-03-06-at-53110-pm.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 00:10:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233712#M195535</guid>
      <dc:creator>ramesh_ganginen</dc:creator>
      <dc:date>2019-08-18T00:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233713#M195536</link>
      <description>&lt;P&gt;The default filename is the timestamp when they were created, so since they are created quickly I'm not totally surprised they have the same filename. However you can use the flow file's UUID as the filename, that is guaranteed to be unique. You can set the filename with an UpdateAttribute processor, add a user-defined property with key "filename" and value "${UUID()}".&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 02:14:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233713#M195536</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2018-03-07T02:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233714#M195537</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt;, Thanks a lot for the quick response. It worked.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 14:26:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/233714#M195537</guid>
      <dc:creator>ramesh_ganginen</dc:creator>
      <dc:date>2018-03-07T14:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/294209#M217128</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to dynamically specify primary key column name as maximum-value column value in Generate Table Fetch processor?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 11:37:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/294209#M217128</guid>
      <dc:creator>rishabh</dc:creator>
      <dc:date>2020-04-17T11:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/294225#M217137</link>
      <description>&lt;P&gt;You can use Expression Language in the Max-Value Columns property to set them per-flowfile, but there currently isn't any way to fetch the primary key column(s) from the database and use those as the max-value columns. You could do that in upstream processors though, then set an attribute to those columns and pass that into GenerateTableFetch.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 15:07:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/294225#M217137</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2020-04-17T15:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/294339#M217197</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301"&gt;@mburgess&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Actually i'm implementing a solution where i'm fetching data from database dynamically from all tables. I used list database table to get table name and passed it to generate table fetch to fetch sql query. now i need to have column name from different table (having different primary key&amp;nbsp; column names ) as maximum-value columns. I'm not sure how to write dynamic expression language for each columns per table in single processor.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 08:44:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/294339#M217197</guid>
      <dc:creator>rishabh</dc:creator>
      <dc:date>2020-04-20T08:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/295156#M217606</link>
      <description>&lt;P&gt;Hi Rishabh,&lt;/P&gt;&lt;P&gt;Were you able to solve your issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 05:59:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/295156#M217606</guid>
      <dc:creator>Bat100</dc:creator>
      <dc:date>2020-04-30T05:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/295157#M217607</link>
      <description>&lt;P&gt;I used python script in execute script to fetch column names for each flow file ( each table) and added new attribute with value as column name. Not best of the solution but that is best i tried.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 06:12:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/295157#M217607</guid>
      <dc:creator>rishabh</dc:creator>
      <dc:date>2020-04-30T06:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/295158#M217608</link>
      <description>&lt;P&gt;Sounds great. what are you trying to implement if you don't mind. I'm totally new to Nifi and my requirement is to extract data from Oracle DB from multiple tables and load it in Oracle DB. The source and target DBs are same and table structure is also same. Except that they are 2 different environments. As far as the knowledge i received from google on Nifi, most of the usecases on internet are extracting data from a single Table but not from Multiple tables. I appreciate any inputs.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 06:28:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/295158#M217608</guid>
      <dc:creator>Bat100</dc:creator>
      <dc:date>2020-04-30T06:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read Configuration properties in QueryDatabaseTable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/302595#M221178</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having exactly the same problem, I was wondering if it's possible to share the configuration did you use to get that result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 22:00:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Configuration-properties-in-QueryDatabaseTable/m-p/302595#M221178</guid>
      <dc:creator>astrobran</dc:creator>
      <dc:date>2020-09-09T22:00:23Z</dc:date>
    </item>
  </channel>
</rss>

