Skip to content

Instantly share code, notes, and snippets.

@tspannhw
Created August 2, 2023 14:29
Show Gist options
  • Save tspannhw/43dbc81b1634a7acb61fada1a3c19a4e to your computer and use it in GitHub Desktop.
Save tspannhw/43dbc81b1634a7acb61fada1a3c19a4e to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.3">
<description></description>
<groupId>bbe01d7d-0188-1000-547f-9f14b009425b</groupId>
<name>ftp</name>
<snippet>
<connections>
<id>07e20afe-0750-325d-0000-000000000000</id>
<parentGroupId>a568e7b3-e3ef-305c-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
<backPressureObjectThreshold>100000</backPressureObjectThreshold>
<destination>
<groupId>a568e7b3-e3ef-305c-0000-000000000000</groupId>
<id>c7eb79fc-6e86-3c95-0000-000000000000</id>
<type>PROCESSOR</type>
</destination>
<flowFileExpiration>0 sec</flowFileExpiration>
<labelIndex>1</labelIndex>
<loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
<loadBalancePartitionAttribute></loadBalancePartitionAttribute>
<loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
<loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
<name></name>
<selectedRelationships>success</selectedRelationships>
<source>
<groupId>a568e7b3-e3ef-305c-0000-000000000000</groupId>
<id>3c3ccfa3-8d63-347d-0000-000000000000</id>
<type>PROCESSOR</type>
</source>
<zIndex>0</zIndex>
</connections>
<connections>
<id>fa052b57-57b9-36d9-0000-000000000000</id>
<parentGroupId>a568e7b3-e3ef-305c-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
<backPressureObjectThreshold>100000</backPressureObjectThreshold>
<destination>
<groupId>a568e7b3-e3ef-305c-0000-000000000000</groupId>
<id>11626074-7227-319b-0000-000000000000</id>
<type>PROCESSOR</type>
</destination>
<flowFileExpiration>0 sec</flowFileExpiration>
<labelIndex>1</labelIndex>
<loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
<loadBalancePartitionAttribute></loadBalancePartitionAttribute>
<loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
<loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
<name></name>
<selectedRelationships>success</selectedRelationships>
<source>
<groupId>a568e7b3-e3ef-305c-0000-000000000000</groupId>
<id>268ce3cc-43a0-3f87-0000-000000000000</id>
<type>PROCESSOR</type>
</source>
<zIndex>0</zIndex>
</connections>
<processors>
<id>11626074-7227-319b-0000-000000000000</id>
<parentGroupId>a568e7b3-e3ef-305c-0000-000000000000</parentGroupId>
<position>
<x>8.0</x>
<y>264.0</y>
</position>
<bundle>
<artifact>nifi-update-attribute-nar</artifact>
<group>org.apache.nifi</group>
<version>1.22.0</version>
</bundle>
<config>
<backoffMechanism>PENALIZE_FLOWFILE</backoffMechanism>
<bulletinLevel>WARN</bulletinLevel>
<comments></comments>
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
<descriptors>
<entry>
<key>Delete Attributes Expression</key>
<value>
<name>Delete Attributes Expression</name>
</value>
</entry>
<entry>
<key>Store State</key>
<value>
<name>Store State</name>
</value>
</entry>
<entry>
<key>Stateful Variables Initial Value</key>
<value>
<name>Stateful Variables Initial Value</name>
</value>
</entry>
<entry>
<key>canonical-value-lookup-cache-size</key>
<value>
<name>canonical-value-lookup-cache-size</name>
</value>
</entry>
</descriptors>
<executionNode>ALL</executionNode>
<lossTolerant>false</lossTolerant>
<maxBackoffPeriod>10 mins</maxBackoffPeriod>
<penaltyDuration>30 sec</penaltyDuration>
<properties>
<entry>
<key>Delete Attributes Expression</key>
</entry>
<entry>
<key>Store State</key>
<value>Do not store state</value>
</entry>
<entry>
<key>Stateful Variables Initial Value</key>
</entry>
<entry>
<key>canonical-value-lookup-cache-size</key>
<value>100</value>
</entry>
</properties>
<retryCount>10</retryCount>
<runDurationMillis>25</runDurationMillis>
<schedulingPeriod>0 sec</schedulingPeriod>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<yieldDuration>1 sec</yieldDuration>
</config>
<executionNodeRestricted>false</executionNodeRestricted>
<name>UpdateAttribute</name>
<relationships>
<autoTerminate>false</autoTerminate>
<name>success</name>
<retry>false</retry>
</relationships>
<state>STOPPED</state>
<style/>
<type>org.apache.nifi.processors.attributes.UpdateAttribute</type>
</processors>
<processors>
<id>268ce3cc-43a0-3f87-0000-000000000000</id>
<parentGroupId>a568e7b3-e3ef-305c-0000-000000000000</parentGroupId>
<position>
<x>0.0</x>
<y>32.0</y>
</position>
<bundle>
<artifact>nifi-standard-nar</artifact>
<group>org.apache.nifi</group>
<version>1.22.0</version>
</bundle>
<config>
<backoffMechanism>PENALIZE_FLOWFILE</backoffMechanism>
<bulletinLevel>WARN</bulletinLevel>
<comments></comments>
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
<descriptors>
<entry>
<key>bind-address</key>
<value>
<name>bind-address</name>
</value>
</entry>
<entry>
<key>listening-port</key>
<value>
<name>listening-port</name>
</value>
</entry>
<entry>
<key>username</key>
<value>
<name>username</name>
</value>
</entry>
<entry>
<key>password</key>
<value>
<name>password</name>
</value>
</entry>
<entry>
<key>ssl-context-service</key>
<value>
<identifiesControllerService>org.apache.nifi.ssl.SSLContextService</identifiesControllerService>
<name>ssl-context-service</name>
</value>
</entry>
</descriptors>
<executionNode>ALL</executionNode>
<lossTolerant>false</lossTolerant>
<maxBackoffPeriod>10 mins</maxBackoffPeriod>
<penaltyDuration>30 sec</penaltyDuration>
<properties>
<entry>
<key>bind-address</key>
<value>192.168.1.153</value>
</entry>
<entry>
<key>listening-port</key>
<value>2221</value>
</entry>
<entry>
<key>username</key>
<value>admin</value>
</entry>
<entry>
<key>password</key>
</entry>
<entry>
<key>ssl-context-service</key>
</entry>
</properties>
<retryCount>10</retryCount>
<runDurationMillis>0</runDurationMillis>
<schedulingPeriod>0 sec</schedulingPeriod>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<yieldDuration>1 sec</yieldDuration>
</config>
<executionNodeRestricted>false</executionNodeRestricted>
<name>ListenFTP</name>
<relationships>
<autoTerminate>false</autoTerminate>
<name>success</name>
<retry>false</retry>
</relationships>
<state>RUNNING</state>
<style/>
<type>org.apache.nifi.processors.standard.ListenFTP</type>
</processors>
<processors>
<id>3c3ccfa3-8d63-347d-0000-000000000000</id>
<parentGroupId>a568e7b3-e3ef-305c-0000-000000000000</parentGroupId>
<position>
<x>478.7542724609375</x>
<y>0.0</y>
</position>
<bundle>
<artifact>nifi-standard-nar</artifact>
<group>org.apache.nifi</group>
<version>1.22.0</version>
</bundle>
<config>
<backoffMechanism>PENALIZE_FLOWFILE</backoffMechanism>
<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>mime-type</key>
<value>
<name>mime-type</name>
</value>
</entry>
</descriptors>
<executionNode>ALL</executionNode>
<lossTolerant>false</lossTolerant>
<maxBackoffPeriod>10 mins</maxBackoffPeriod>
<penaltyDuration>30 sec</penaltyDuration>
<properties>
<entry>
<key>File Size</key>
<value>1024B</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>true</value>
</entry>
<entry>
<key>generate-ff-custom-text</key>
</entry>
<entry>
<key>character-set</key>
<value>UTF-8</value>
</entry>
<entry>
<key>mime-type</key>
</entry>
</properties>
<retryCount>10</retryCount>
<runDurationMillis>0</runDurationMillis>
<schedulingPeriod>1 min</schedulingPeriod>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<yieldDuration>1 sec</yieldDuration>
</config>
<executionNodeRestricted>false</executionNodeRestricted>
<name>GenerateFlowFile</name>
<relationships>
<autoTerminate>false</autoTerminate>
<name>success</name>
<retry>false</retry>
</relationships>
<state>STOPPED</state>
<style/>
<type>org.apache.nifi.processors.standard.GenerateFlowFile</type>
</processors>
<processors>
<id>c7eb79fc-6e86-3c95-0000-000000000000</id>
<parentGroupId>a568e7b3-e3ef-305c-0000-000000000000</parentGroupId>
<position>
<x>478.7542724609375</x>
<y>272.0</y>
</position>
<bundle>
<artifact>nifi-standard-nar</artifact>
<group>org.apache.nifi</group>
<version>1.22.0</version>
</bundle>
<config>
<backoffMechanism>PENALIZE_FLOWFILE</backoffMechanism>
<bulletinLevel>WARN</bulletinLevel>
<comments></comments>
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
<descriptors>
<entry>
<key>Hostname</key>
<value>
<name>Hostname</name>
</value>
</entry>
<entry>
<key>Port</key>
<value>
<name>Port</name>
</value>
</entry>
<entry>
<key>Username</key>
<value>
<name>Username</name>
</value>
</entry>
<entry>
<key>Password</key>
<value>
<name>Password</name>
</value>
</entry>
<entry>
<key>Remote Path</key>
<value>
<name>Remote Path</name>
</value>
</entry>
<entry>
<key>Create Directory</key>
<value>
<name>Create Directory</name>
</value>
</entry>
<entry>
<key>Batch Size</key>
<value>
<name>Batch Size</name>
</value>
</entry>
<entry>
<key>Connection Timeout</key>
<value>
<name>Connection Timeout</name>
</value>
</entry>
<entry>
<key>Data Timeout</key>
<value>
<name>Data Timeout</name>
</value>
</entry>
<entry>
<key>Conflict Resolution</key>
<value>
<name>Conflict Resolution</name>
</value>
</entry>
<entry>
<key>Dot Rename</key>
<value>
<name>Dot Rename</name>
</value>
</entry>
<entry>
<key>Temporary Filename</key>
<value>
<name>Temporary Filename</name>
</value>
</entry>
<entry>
<key>Transfer Mode</key>
<value>
<name>Transfer Mode</name>
</value>
</entry>
<entry>
<key>Connection Mode</key>
<value>
<name>Connection Mode</name>
</value>
</entry>
<entry>
<key>Reject Zero-Byte Files</key>
<value>
<name>Reject Zero-Byte Files</name>
</value>
</entry>
<entry>
<key>Last Modified Time</key>
<value>
<name>Last Modified Time</name>
</value>
</entry>
<entry>
<key>Permissions</key>
<value>
<name>Permissions</name>
</value>
</entry>
<entry>
<key>Use Compression</key>
<value>
<name>Use Compression</name>
</value>
</entry>
<entry>
<key>proxy-configuration-service</key>
<value>
<identifiesControllerService>org.apache.nifi.proxy.ProxyConfigurationService</identifiesControllerService>
<name>proxy-configuration-service</name>
</value>
</entry>
<entry>
<key>Proxy Type</key>
<value>
<name>Proxy Type</name>
</value>
</entry>
<entry>
<key>Proxy Host</key>
<value>
<name>Proxy Host</name>
</value>
</entry>
<entry>
<key>Proxy Port</key>
<value>
<name>Proxy Port</name>
</value>
</entry>
<entry>
<key>Http Proxy Username</key>
<value>
<name>Http Proxy Username</name>
</value>
</entry>
<entry>
<key>Http Proxy Password</key>
<value>
<name>Http Proxy Password</name>
</value>
</entry>
<entry>
<key>Internal Buffer Size</key>
<value>
<name>Internal Buffer Size</name>
</value>
</entry>
<entry>
<key>ftp-use-utf8</key>
<value>
<name>ftp-use-utf8</name>
</value>
</entry>
</descriptors>
<executionNode>ALL</executionNode>
<lossTolerant>false</lossTolerant>
<maxBackoffPeriod>10 mins</maxBackoffPeriod>
<penaltyDuration>30 sec</penaltyDuration>
<properties>
<entry>
<key>Hostname</key>
<value>192.168.1.153</value>
</entry>
<entry>
<key>Port</key>
<value>2221</value>
</entry>
<entry>
<key>Username</key>
<value>admin</value>
</entry>
<entry>
<key>Password</key>
</entry>
<entry>
<key>Remote Path</key>
</entry>
<entry>
<key>Create Directory</key>
<value>true</value>
</entry>
<entry>
<key>Batch Size</key>
<value>500</value>
</entry>
<entry>
<key>Connection Timeout</key>
<value>30 sec</value>
</entry>
<entry>
<key>Data Timeout</key>
<value>30 sec</value>
</entry>
<entry>
<key>Conflict Resolution</key>
<value>REPLACE</value>
</entry>
<entry>
<key>Dot Rename</key>
<value>true</value>
</entry>
<entry>
<key>Temporary Filename</key>
</entry>
<entry>
<key>Transfer Mode</key>
<value>Binary</value>
</entry>
<entry>
<key>Connection Mode</key>
<value>Passive</value>
</entry>
<entry>
<key>Reject Zero-Byte Files</key>
<value>true</value>
</entry>
<entry>
<key>Last Modified Time</key>
</entry>
<entry>
<key>Permissions</key>
</entry>
<entry>
<key>Use Compression</key>
<value>false</value>
</entry>
<entry>
<key>proxy-configuration-service</key>
</entry>
<entry>
<key>Proxy Type</key>
<value>DIRECT</value>
</entry>
<entry>
<key>Proxy Host</key>
</entry>
<entry>
<key>Proxy Port</key>
</entry>
<entry>
<key>Http Proxy Username</key>
</entry>
<entry>
<key>Http Proxy Password</key>
</entry>
<entry>
<key>Internal Buffer Size</key>
<value>16KB</value>
</entry>
<entry>
<key>ftp-use-utf8</key>
<value>false</value>
</entry>
</properties>
<retryCount>10</retryCount>
<runDurationMillis>0</runDurationMillis>
<schedulingPeriod>0 sec</schedulingPeriod>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<yieldDuration>1 sec</yieldDuration>
</config>
<executionNodeRestricted>false</executionNodeRestricted>
<name>PutFTP</name>
<relationships>
<autoTerminate>true</autoTerminate>
<name>failure</name>
<retry>false</retry>
</relationships>
<relationships>
<autoTerminate>true</autoTerminate>
<name>reject</name>
<retry>false</retry>
</relationships>
<relationships>
<autoTerminate>true</autoTerminate>
<name>success</name>
<retry>false</retry>
</relationships>
<state>RUNNING</state>
<style/>
<type>org.apache.nifi.processors.standard.PutFTP</type>
</processors>
</snippet>
<timestamp>08/02/2023 10:28:09 EDT</timestamp>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment