Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Issues with nifi upgrade:Destination cannot be within sources

Issues with nifi upgrade:Destination cannot be within sources

New Contributor

After i upgraded Nifi for some reason SplitText processor is failing with this error: Destination cannot be within sources. I checked source code and i can see that it is caused by sources.contains(destination) in StandardProcessSession.java

Anyone have any clue what could be the problem?

Update:

I just checked new install of nifi 1.1.1 and still i get this error.

Scenario that i tested is next:

GetFile -> SplitText -> LogAttribute.

Update:

Here is the issue related to this: https://issues.apache.org/jira/browse/NIFI-3255?jql=text%20~%20%22splittext%22

2 REPLIES 2

Re: Issues with nifi upgrade:Destination cannot be within sources

The discussion in the Jira case you mention contains most of the information about the problem (and possible solutions). It appears to be a regression. A possible workaround might be to use ExtractText to remove the header and put it into an attribute, then SplitText with Header Line Count of zero, then ReplaceText with the header followed by the split file's content.

Re: Issues with nifi upgrade:Destination cannot be within sources

New Contributor

Hi Matt, yes i already hacked it with something similar. And now i am watching that issue. The logic in that piece of code is strange.

Don't have an account?
Coming from Hortonworks? Activate your account here