You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Sivaprasanna Sethuraman (JIRA)" <ji...@apache.org> on 2018/05/05 13:20:00 UTC

[jira] [Commented] (NIFI-5152) MoveHDFS should have @InputRequirement(Requirement.INPUT_REQUIRED)

    [ https://issues.apache.org/jira/browse/NIFI-5152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16464769#comment-16464769 ] 

Sivaprasanna Sethuraman commented on NIFI-5152:
-----------------------------------------------

I saw the related question on Stackoverflow. Should this really be `INPUT_REQUIRED`? I mean in some cases people might have situation where they can use MoveHDFS to do a periodic archive from a static path where they can simply go on using MoveHDFS without an upstream processor. I mean even after making it INPUT_REQUIRED we can use something like GenerateFlowfile to do it.. but I'm just asking out of curiosity.

> MoveHDFS should have @InputRequirement(Requirement.INPUT_REQUIRED)
> ------------------------------------------------------------------
>
>                 Key: NIFI-5152
>                 URL: https://issues.apache.org/jira/browse/NIFI-5152
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>            Reporter: Bryan Bende
>            Priority: Minor
>
> The onTrigger method of MoveHDFS will return when no incoming flow file is obtained, therefore the processor can only be used with an incoming relationships and should have the INPUT_REQUIRED annotation.
> If the expected behavior was to use the processor without an incoming relationship, then instead of requiring input, the code needs to be updated to handle both scenarios.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)