Created
August 30, 2018 04:19
-
-
Save alopresto/b78ec5da5482f4af7f88faf7eeefd3b7 to your computer and use it in GitHub Desktop.
As described in NIFI-5561, this PR allows a SiteToSiteProvenanceReportingTask to filter the components included by accept list & deny list regex. This flow exercises the new functionality.
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" encoding="UTF-8" standalone="yes"?> | |
<template encoding-version="1.2"> | |
<description>As described in NIFI-5561, this PR allows a SiteToSiteProvenanceReportingTask to filter the components included by accept list & deny list regex. This flow exercises the new functionality. </description> | |
<groupId>890136a9-0165-1000-7e60-2ed87888f3ab</groupId> | |
<name>Flow to verify PR 2973</name> | |
<snippet> | |
<connections> | |
<id>2cde3fb8-1773-3ebf-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>f040b681-c0d4-3f2e-0000-000000000000</groupId> | |
<id>c5f266bb-4054-3f03-9433-0b13b7c05863</id> | |
<type>REMOTE_INPUT_PORT</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>3bc70cea-1997-36c0-0000-000000000000</groupId> | |
<id>c3878bef-0ac1-39b4-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>42c37f89-1b09-321b-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>3bc70cea-1997-36c0-0000-000000000000</groupId> | |
<id>53486481-fad2-3f14-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<source> | |
<groupId>3bc70cea-1997-36c0-0000-000000000000</groupId> | |
<id>d9a7e79a-058e-344f-0000-000000000000</id> | |
<type>INPUT_PORT</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>62d72466-bd5d-3a3d-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>3bc70cea-1997-36c0-0000-000000000000</groupId> | |
<id>53486481-fad2-3f14-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<source> | |
<groupId>3bc70cea-1997-36c0-0000-000000000000</groupId> | |
<id>a61ac03b-0cb5-3c91-0000-000000000000</id> | |
<type>INPUT_PORT</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>74b39b0f-eb29-3c0c-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>f040b681-c0d4-3f2e-0000-000000000000</groupId> | |
<id>c5f266bb-4054-3f03-9433-0b13b7c05863</id> | |
<type>REMOTE_INPUT_PORT</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>3bc70cea-1997-36c0-0000-000000000000</groupId> | |
<id>e7e02da9-39c0-3c3b-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>ee04c686-3b92-39c3-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>f040b681-c0d4-3f2e-0000-000000000000</groupId> | |
<id>c5f266bb-4054-3f03-9433-0b13b7c05863</id> | |
<type>REMOTE_INPUT_PORT</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>3bc70cea-1997-36c0-0000-000000000000</groupId> | |
<id>fb8386eb-ad1a-3064-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<inputPorts> | |
<id>a61ac03b-0cb5-3c91-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<position> | |
<x>515.0</x> | |
<y>662.0</y> | |
</position> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<name>S2SPRT</name> | |
<state>STOPPED</state> | |
<transmitting>false</transmitting> | |
<type>INPUT_PORT</type> | |
</inputPorts> | |
<inputPorts> | |
<id>d9a7e79a-058e-344f-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<position> | |
<x>55.0</x> | |
<y>446.0</y> | |
</position> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<name>Same</name> | |
<state>STOPPED</state> | |
<transmitting>false</transmitting> | |
<type>INPUT_PORT</type> | |
</inputPorts> | |
<processors> | |
<id>53486481-fad2-3f14-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<position> | |
<x>0.0</x> | |
<y>633.0</y> | |
</position> | |
<bundle> | |
<artifact>nifi-standard-nar</artifact> | |
<group>org.apache.nifi</group> | |
<version>1.8.0-SNAPSHOT</version> | |
</bundle> | |
<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-log-regex</key> | |
<value> | |
<name>attributes-to-log-regex</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Attributes to Ignore</key> | |
<value> | |
<name>Attributes to Ignore</name> | |
</value> | |
</entry> | |
<entry> | |
<key>attributes-to-ignore-regex</key> | |
<value> | |
<name>attributes-to-ignore-regex</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Log prefix</key> | |
<value> | |
<name>Log prefix</name> | |
</value> | |
</entry> | |
<entry> | |
<key>character-set</key> | |
<value> | |
<name>character-set</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>true</value> | |
</entry> | |
<entry> | |
<key>Attributes to Log</key> | |
</entry> | |
<entry> | |
<key>attributes-to-log-regex</key> | |
<value>.*</value> | |
</entry> | |
<entry> | |
<key>Attributes to Ignore</key> | |
</entry> | |
<entry> | |
<key>attributes-to-ignore-regex</key> | |
</entry> | |
<entry> | |
<key>Log prefix</key> | |
</entry> | |
<entry> | |
<key>character-set</key> | |
<value>UTF-8</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<executionNodeRestricted>false</executionNodeRestricted> | |
<name>LogAttribute</name> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<state>STOPPED</state> | |
<style/> | |
<type>org.apache.nifi.processors.standard.LogAttribute</type> | |
</processors> | |
<processors> | |
<id>c3878bef-0ac1-39b4-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<position> | |
<x>275.0</x> | |
<y>162.0</y> | |
</position> | |
<bundle> | |
<artifact>nifi-standard-nar</artifact> | |
<group>org.apache.nifi</group> | |
<version>1.8.0-SNAPSHOT</version> | |
</bundle> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>File Size</key> | |
<value> | |
<name>File Size</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Batch Size</key> | |
<value> | |
<name>Batch Size</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Data Format</key> | |
<value> | |
<name>Data Format</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Unique FlowFiles</key> | |
<value> | |
<name>Unique FlowFiles</name> | |
</value> | |
</entry> | |
<entry> | |
<key>generate-ff-custom-text</key> | |
<value> | |
<name>generate-ff-custom-text</name> | |
</value> | |
</entry> | |
<entry> | |
<key>character-set</key> | |
<value> | |
<name>character-set</name> | |
</value> | |
</entry> | |
<entry> | |
<key>source</key> | |
<value> | |
<name>source</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>File Size</key> | |
<value>0B</value> | |
</entry> | |
<entry> | |
<key>Batch Size</key> | |
<value>1</value> | |
</entry> | |
<entry> | |
<key>Data Format</key> | |
<value>Text</value> | |
</entry> | |
<entry> | |
<key>Unique FlowFiles</key> | |
<value>false</value> | |
</entry> | |
<entry> | |
<key>generate-ff-custom-text</key> | |
<value>This message was generated by Component A (B). </value> | |
</entry> | |
<entry> | |
<key>character-set</key> | |
<value>UTF-8</value> | |
</entry> | |
<entry> | |
<key>source</key> | |
<value>Component A (B)</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>1 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<executionNodeRestricted>false</executionNodeRestricted> | |
<name>Component A (B)</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<state>STOPPED</state> | |
<style/> | |
<type>org.apache.nifi.processors.standard.GenerateFlowFile</type> | |
</processors> | |
<processors> | |
<id>e7e02da9-39c0-3c3b-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<position> | |
<x>644.0</x> | |
<y>0.0</y> | |
</position> | |
<bundle> | |
<artifact>nifi-standard-nar</artifact> | |
<group>org.apache.nifi</group> | |
<version>1.8.0-SNAPSHOT</version> | |
</bundle> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>File Size</key> | |
<value> | |
<name>File Size</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Batch Size</key> | |
<value> | |
<name>Batch Size</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Data Format</key> | |
<value> | |
<name>Data Format</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Unique FlowFiles</key> | |
<value> | |
<name>Unique FlowFiles</name> | |
</value> | |
</entry> | |
<entry> | |
<key>generate-ff-custom-text</key> | |
<value> | |
<name>generate-ff-custom-text</name> | |
</value> | |
</entry> | |
<entry> | |
<key>character-set</key> | |
<value> | |
<name>character-set</name> | |
</value> | |
</entry> | |
<entry> | |
<key>source</key> | |
<value> | |
<name>source</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>File Size</key> | |
<value>0B</value> | |
</entry> | |
<entry> | |
<key>Batch Size</key> | |
<value>1</value> | |
</entry> | |
<entry> | |
<key>Data Format</key> | |
<value>Text</value> | |
</entry> | |
<entry> | |
<key>Unique FlowFiles</key> | |
<value>false</value> | |
</entry> | |
<entry> | |
<key>generate-ff-custom-text</key> | |
<value>This message was generated by Component A (2). </value> | |
</entry> | |
<entry> | |
<key>character-set</key> | |
<value>UTF-8</value> | |
</entry> | |
<entry> | |
<key>source</key> | |
<value>Component A (2)</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>1 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<executionNodeRestricted>false</executionNodeRestricted> | |
<name>Component A</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<state>STOPPED</state> | |
<style/> | |
<type>org.apache.nifi.processors.standard.GenerateFlowFile</type> | |
</processors> | |
<processors> | |
<id>fb8386eb-ad1a-3064-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<position> | |
<x>275.0</x> | |
<y>1.0</y> | |
</position> | |
<bundle> | |
<artifact>nifi-standard-nar</artifact> | |
<group>org.apache.nifi</group> | |
<version>1.8.0-SNAPSHOT</version> | |
</bundle> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>File Size</key> | |
<value> | |
<name>File Size</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Batch Size</key> | |
<value> | |
<name>Batch Size</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Data Format</key> | |
<value> | |
<name>Data Format</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Unique FlowFiles</key> | |
<value> | |
<name>Unique FlowFiles</name> | |
</value> | |
</entry> | |
<entry> | |
<key>generate-ff-custom-text</key> | |
<value> | |
<name>generate-ff-custom-text</name> | |
</value> | |
</entry> | |
<entry> | |
<key>character-set</key> | |
<value> | |
<name>character-set</name> | |
</value> | |
</entry> | |
<entry> | |
<key>source</key> | |
<value> | |
<name>source</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>File Size</key> | |
<value>0B</value> | |
</entry> | |
<entry> | |
<key>Batch Size</key> | |
<value>1</value> | |
</entry> | |
<entry> | |
<key>Data Format</key> | |
<value>Text</value> | |
</entry> | |
<entry> | |
<key>Unique FlowFiles</key> | |
<value>false</value> | |
</entry> | |
<entry> | |
<key>generate-ff-custom-text</key> | |
<value>This message was generated by Component A. </value> | |
</entry> | |
<entry> | |
<key>character-set</key> | |
<value>UTF-8</value> | |
</entry> | |
<entry> | |
<key>source</key> | |
<value>Component A</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>1 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<executionNodeRestricted>false</executionNodeRestricted> | |
<name>Component A</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<state>STOPPED</state> | |
<style/> | |
<type>org.apache.nifi.processors.standard.GenerateFlowFile</type> | |
</processors> | |
<remoteProcessGroups> | |
<id>f040b681-c0d4-3f2e-0000-000000000000</id> | |
<parentGroupId>3bc70cea-1997-36c0-0000-000000000000</parentGroupId> | |
<position> | |
<x>444.0</x> | |
<y>407.0</y> | |
</position> | |
<comments></comments> | |
<communicationsTimeout>30 sec</communicationsTimeout> | |
<contents> | |
<inputPorts> | |
<batchSettings/> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<connected>false</connected> | |
<exists>true</exists> | |
<groupId>89035098-0165-1000-4145-7c65f3dd7221</groupId> | |
<id>cd577092-a758-3b03-9f49-936af2d68ab7</id> | |
<name>S2SPRT</name> | |
<targetId>89043ae5-0165-1000-fb6f-194ce4b0f14b</targetId> | |
<targetRunning>false</targetRunning> | |
<transmitting>false</transmitting> | |
<useCompression>false</useCompression> | |
</inputPorts> | |
<inputPorts> | |
<batchSettings/> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<connected>true</connected> | |
<exists>true</exists> | |
<groupId>89035098-0165-1000-4145-7c65f3dd7221</groupId> | |
<id>c5f266bb-4054-3f03-9433-0b13b7c05863</id> | |
<name>Same</name> | |
<targetId>8902b374-0165-1000-1128-826e8d44c173</targetId> | |
<targetRunning>false</targetRunning> | |
<transmitting>true</transmitting> | |
<useCompression>false</useCompression> | |
</inputPorts> | |
</contents> | |
<proxyHost></proxyHost> | |
<proxyUser></proxyUser> | |
<targetUri>http://localhost:8080/nifi</targetUri> | |
<targetUris>http://localhost:8080/nifi</targetUris> | |
<transportProtocol>HTTP</transportProtocol> | |
<yieldDuration>10 sec</yieldDuration> | |
</remoteProcessGroups> | |
</snippet> | |
<timestamp>08/29/2018 21:18:50 PDT</timestamp> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment