Created
September 28, 2016 00:30
-
-
Save alopresto/9ef34727a7e72bb81944c214f921078a to your computer and use it in GitHub Desktop.
NiFi template containing a `ExecuteProcess` processor connected to a `LogAttribute` processor.
This file contains 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></description> | |
<groupId>459549da-0157-1000-e381-c7ba87f8ff61</groupId> | |
<name>ExecuteProcess and print output</name> | |
<snippet> | |
<connections> | |
<id>6e22e0ec-0157-1000-0000-000000000000</id> | |
<parentGroupId>459549da-0157-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>459549da-0157-1000-0000-000000000000</groupId> | |
<id>6e22ae1c-0157-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>459549da-0157-1000-0000-000000000000</groupId> | |
<id>6e0d4685-0157-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<processors> | |
<id>6e0d4685-0157-1000-0000-000000000000</id> | |
<parentGroupId>459549da-0157-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>1.0</x> | |
<y>0.0</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>Command</key> | |
<value> | |
<name>Command</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Command Arguments</key> | |
<value> | |
<name>Command Arguments</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Batch Duration</key> | |
<value> | |
<name>Batch Duration</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Redirect Error Stream</key> | |
<value> | |
<name>Redirect Error Stream</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Argument Delimiter</key> | |
<value> | |
<name>Argument Delimiter</name> | |
</value> | |
</entry> | |
</descriptors> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>Command</key> | |
<value>/Users/alopresto/Workspace/scratch/process-test/script.sh</value> | |
</entry> | |
<entry> | |
<key>Command Arguments</key> | |
<value>1 2 3</value> | |
</entry> | |
<entry> | |
<key>Batch Duration</key> | |
</entry> | |
<entry> | |
<key>Redirect Error Stream</key> | |
<value>true</value> | |
</entry> | |
<entry> | |
<key>Argument Delimiter</key> | |
<value> </value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>5 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>ExecuteProcess</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.ExecuteProcess</type> | |
</processors> | |
<processors> | |
<id>6e22ae1c-0157-1000-0000-000000000000</id> | |
<parentGroupId>459549da-0157-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>0.0</x> | |
<y>264.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> | |
<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 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> | |
</snippet> | |
<timestamp>09/27/2016 17:28:53 PDT</timestamp> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment