Created
March 21, 2017 19:19
-
-
Save jfrazee/63fc76f25bc5cdcfaf66d246cf232d19 to your computer and use it in GitHub Desktop.
NIFI-3585: Add DatabaseAdapter impl for MS SQL 2008
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<template encoding-version="1.0"> | |
<description>Add DatabaseAdapter impl for MS SQL 2008</description> | |
<groupId>f23b8db4-015a-1000-3c3d-2f6bbd6e7aed</groupId> | |
<name>NIFI-3585</name> | |
<snippet> | |
<processGroups> | |
<id>f23c8dca-015a-1000-0000-000000000000</id> | |
<parentGroupId>f23b8db4-015a-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>0.0</x> | |
<y>0.0</y> | |
</position> | |
<comments></comments> | |
<contents> | |
<connections> | |
<id>f2474e09-015a-1000-0000-000000000000</id> | |
<parentGroupId>f23c8dca-015a-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>f23c8dca-015a-1000-0000-000000000000</groupId> | |
<id>f246cb76-015a-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>f23c8dca-015a-1000-0000-000000000000</groupId> | |
<id>f23cb3a4-015a-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f2477dfe-015a-1000-0000-000000000000</id> | |
<parentGroupId>f23c8dca-015a-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>f23c8dca-015a-1000-0000-000000000000</groupId> | |
<id>f24732b9-015a-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>f23c8dca-015a-1000-0000-000000000000</groupId> | |
<id>f246cb76-015a-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f247efdd-015a-1000-0000-000000000000</id> | |
<parentGroupId>f23c8dca-015a-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>256 MB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>1000</backPressureObjectThreshold> | |
<destination> | |
<groupId>f23c8dca-015a-1000-0000-000000000000</groupId> | |
<id>f247ab86-015a-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>5 min</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>f23c8dca-015a-1000-0000-000000000000</groupId> | |
<id>f24732b9-015a-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<controllerServices> | |
<id>f23cd080-015a-1000-0000-000000000000</id> | |
<parentGroupId>f23c8dca-015a-1000-0000-000000000000</parentGroupId> | |
<comments></comments> | |
<descriptors> | |
<entry> | |
<key>Database Connection URL</key> | |
<value> | |
<name>Database Connection URL</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Database Driver Class Name</key> | |
<value> | |
<name>Database Driver Class Name</name> | |
</value> | |
</entry> | |
<entry> | |
<key>database-driver-locations</key> | |
<value> | |
<name>database-driver-locations</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Database User</key> | |
<value> | |
<name>Database User</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Password</key> | |
<value> | |
<name>Password</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Max Wait Time</key> | |
<value> | |
<name>Max Wait Time</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Max Total Connections</key> | |
<value> | |
<name>Max Total Connections</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Validation-query</key> | |
<value> | |
<name>Validation-query</name> | |
</value> | |
</entry> | |
</descriptors> | |
<name>DBCPConnectionPool</name> | |
<properties> | |
<entry> | |
<key>Database Connection URL</key> | |
<value>jdbc:sqlserver://nifi-3585.cinbmbsvlroi.us-east-1.rds.amazonaws.com:1433;databaseName=Northwind</value> | |
</entry> | |
<entry> | |
<key>Database Driver Class Name</key> | |
<value>com.microsoft.sqlserver.jdbc.SQLServerDriver</value> | |
</entry> | |
<entry> | |
<key>database-driver-locations</key> | |
<value>/usr/local/java/lib/jdbc/sqljdbc42.jar</value> | |
</entry> | |
<entry> | |
<key>Database User</key> | |
<value>admin</value> | |
</entry> | |
<entry> | |
<key>Password</key> | |
</entry> | |
<entry> | |
<key>Max Wait Time</key> | |
</entry> | |
<entry> | |
<key>Max Total Connections</key> | |
</entry> | |
<entry> | |
<key>Validation-query</key> | |
</entry> | |
</properties> | |
<state>ENABLED</state> | |
<type>org.apache.nifi.dbcp.DBCPConnectionPool</type> | |
</controllerServices> | |
<processors> | |
<id>f23cb3a4-015a-1000-0000-000000000000</id> | |
<parentGroupId>f23c8dca-015a-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>312.0</x> | |
<y>51.0</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>Database Connection Pooling Service</key> | |
<value> | |
<identifiesControllerService>org.apache.nifi.dbcp.DBCPService</identifiesControllerService> | |
<name>Database Connection Pooling Service</name> | |
</value> | |
</entry> | |
<entry> | |
<key>db-fetch-db-type</key> | |
<value> | |
<name>db-fetch-db-type</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Table Name</key> | |
<value> | |
<name>Table Name</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Columns to Return</key> | |
<value> | |
<name>Columns to Return</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Maximum-value Columns</key> | |
<value> | |
<name>Maximum-value Columns</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Max Wait Time</key> | |
<value> | |
<name>Max Wait Time</name> | |
</value> | |
</entry> | |
<entry> | |
<key>gen-table-fetch-partition-size</key> | |
<value> | |
<name>gen-table-fetch-partition-size</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>Database Connection Pooling Service</key> | |
<value>f23cd080-015a-1000-0000-000000000000</value> | |
</entry> | |
<entry> | |
<key>db-fetch-db-type</key> | |
<value>MS SQL 2008</value> | |
</entry> | |
<entry> | |
<key>Table Name</key> | |
<value>Orders</value> | |
</entry> | |
<entry> | |
<key>Columns to Return</key> | |
</entry> | |
<entry> | |
<key>Maximum-value Columns</key> | |
<value>OrderID</value> | |
</entry> | |
<entry> | |
<key>Max Wait Time</key> | |
<value>0 seconds</value> | |
</entry> | |
<entry> | |
<key>gen-table-fetch-partition-size</key> | |
<value>10</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>30 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>GenerateTableFetch</name> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>failure</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.GenerateTableFetch</type> | |
</processors> | |
<processors> | |
<id>f246cb76-015a-1000-0000-000000000000</id> | |
<parentGroupId>f23c8dca-015a-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>314.0</x> | |
<y>268.0</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>4</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>Database Connection Pooling Service</key> | |
<value> | |
<identifiesControllerService>org.apache.nifi.dbcp.DBCPService</identifiesControllerService> | |
<name>Database Connection Pooling Service</name> | |
</value> | |
</entry> | |
<entry> | |
<key>SQL select query</key> | |
<value> | |
<name>SQL select query</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Max Wait Time</key> | |
<value> | |
<name>Max Wait Time</name> | |
</value> | |
</entry> | |
<entry> | |
<key>dbf-normalize</key> | |
<value> | |
<name>dbf-normalize</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>Database Connection Pooling Service</key> | |
<value>f23cd080-015a-1000-0000-000000000000</value> | |
</entry> | |
<entry> | |
<key>SQL select query</key> | |
</entry> | |
<entry> | |
<key>Max Wait Time</key> | |
<value>0 seconds</value> | |
</entry> | |
<entry> | |
<key>dbf-normalize</key> | |
<value>false</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>ExecuteSQL</name> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>failure</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.ExecuteSQL</type> | |
</processors> | |
<processors> | |
<id>f24732b9-015a-1000-0000-000000000000</id> | |
<parentGroupId>f23c8dca-015a-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>315.0</x> | |
<y>477.0</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>JSON container options</key> | |
<value> | |
<name>JSON container options</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Wrap Single Record</key> | |
<value> | |
<name>Wrap Single Record</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Avro schema</key> | |
<value> | |
<name>Avro schema</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>JSON container options</key> | |
<value>array</value> | |
</entry> | |
<entry> | |
<key>Wrap Single Record</key> | |
<value>false</value> | |
</entry> | |
<entry> | |
<key>Avro schema</key> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>ConvertAvroToJSON</name> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>failure</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.avro.ConvertAvroToJSON</type> | |
</processors> | |
<processors> | |
<id>f247ab86-015a-1000-0000-000000000000</id> | |
<parentGroupId>f23c8dca-015a-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>898.0</x> | |
<y>477.0</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>Log Level</key> | |
<value> | |
<name>Log Level</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Log Payload</key> | |
<value> | |
<name>Log Payload</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Attributes to Log</key> | |
<value> | |
<name>Attributes to Log</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Attributes to Ignore</key> | |
<value> | |
<name>Attributes to Ignore</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Log prefix</key> | |
<value> | |
<name>Log prefix</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>Log Level</key> | |
<value>info</value> | |
</entry> | |
<entry> | |
<key>Log Payload</key> | |
<value>false</value> | |
</entry> | |
<entry> | |
<key>Attributes to Log</key> | |
</entry> | |
<entry> | |
<key>Attributes to Ignore</key> | |
</entry> | |
<entry> | |
<key>Log prefix</key> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>LogAttribute</name> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.LogAttribute</type> | |
</processors> | |
</contents> | |
<name>NIFI-3585</name> | |
</processGroups> | |
</snippet> | |
<timestamp>03/21/2017 14:17:55 CDT</timestamp> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment