nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fran├žois Prunier (JIRA) <>
Subject [jira] [Commented] (NIFI-3204) delete hdfs processor throws an error stating transfer relationship not specified even when all relationships are present
Date Tue, 28 Feb 2017 17:35:45 GMT


Fran├žois Prunier commented on NIFI-3204:

This only happens if the processor handles an incoming flowfile, ie  !context.hasIncomingConnection()
is true.

I have a patch for it but it breaks the semantics of the processor: what do we do with the
original flowfile ?

> delete hdfs processor throws an error stating transfer relationship not specified even
when all relationships are present
> -------------------------------------------------------------------------------------------------------------------------
>                 Key: NIFI-3204
>                 URL:
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 1.1.0
>            Reporter: Arpit Gupta
> Following flow was setup
> get file -> extract text -> delete hdfs
> A bunch of files were written each having one line which was the path to delete. Some
of these path's were files, some were directories and some were patterns. Extract text would
extract the line and assign to an attribute which delete hdfs would use to populate the path
to delete.
> However the processor would run into an error when ever it tried to process the path
which was a pattern matching multiple paths.
> {code}
> 2016-12-14 11:32:43,335 ERROR [Timer-Driven Process Thread-7] o.a.nifi.processors.hadoop.DeleteHDFS
DeleteHDFS[id=fed0acf6-0158-1000-b7ab-8cc724e4142d] DeleteHDFS[id=fed0acf6-0158-1000-b7ab-8cc724e4142d]
failed to process session due to org.apache.nifi.processor.exception
> .FlowFileHandlingException: StandardFlowFileRecord[uuid=af8be94a-e527-4203-bb87-a0115f84e582,claim=StandardContentClaim
[resourceClaim=StandardResourceClaim[id=1481656798897-1, container=default, section=1], offset=6518,
length=75],offset=0,name=noyg3p7km8.txt,size=75] tr
> ansfer relationship not specified: org.apache.nifi.processor.exception.FlowFileHandlingException:
[resourceClaim=StandardResourceClaim[id=1481656798897-1, container=default, sectio
> n=1], offset=6518, length=75],offset=0,name=noyg3p7km8.txt,size=75] transfer relationship
not specified
> 2016-12-14 11:32:43,335 ERROR [Timer-Driven Process Thread-7] o.a.nifi.processors.hadoop.DeleteHDFS
> org.apache.nifi.processor.exception.FlowFileHandlingException: StandardFlowFileRecord[uuid=af8be94a-e527-4203-bb87-a0115f84e582,claim=StandardContentClaim
[resourceClaim=StandardResourceClaim[id=1481656798897-1, container=default, section=1], offset=6518,
> t=0,name=noyg3p7km8.txt,size=75] transfer relationship not specified
>         at org.apache.nifi.controller.repository.StandardProcessSession.checkpoint(
>         at org.apache.nifi.controller.repository.StandardProcessSession.commit(
>         at org.apache.nifi.processor.AbstractProcessor.onTrigger(
>         at org.apache.nifi.controller.StandardProcessorNode.onTrigger(
>         at
>         at
>         at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$
>         at java.util.concurrent.Executors$ [na:1.8.0_92]
>         at java.util.concurrent.FutureTask.runAndReset( [na:1.8.0_92]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
>         at java.util.concurrent.ScheduledThreadPoolExecutor$
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
>         at java.util.concurrent.ThreadPoolExecutor$
>         at [na:1.8.0_92]
> 2016-12-14 11:32:43,335 WARN [Timer-Driven Process Thread-7] o.a.nifi.processors.hadoop.DeleteHDFS
DeleteHDFS[id=fed0acf6-0158-1000-b7ab-8cc724e4142d] Processor Administratively Yielded for
1 sec due to processing failure
> {code}

This message was sent by Atlassian JIRA

View raw message