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

Aldrin Piri commented on MINIFI-521:
------------------------------------

Confirmed the expected config.yml is not quite right.  Used the buggy xml with 
the changes applied and was able to successfully transmit.  Will update the 
files and get the associated tests enabled.

> minifi-toolkit-0.5.0: "Connection with id ... has invalid destination id" 
> confused by targetId?
> -----------------------------------------------------------------------------------------------
>
>                 Key: MINIFI-521
>                 URL: https://issues.apache.org/jira/browse/MINIFI-521
>             Project: Apache NiFi MiNiFi
>          Issue Type: Bug
>          Components: Agent Configuration/Installation
>    Affects Versions: 0.5.0
>         Environment: version: '3'
> services:
>   nifi:
>     image: apache/nifi:1:10.0
>   minifi:
>     image: apache/nifi-minifi:0.5.0
> minifi-toolkit-0.5.0, Windows
>            Reporter: Sebastian Napiorkowski
>            Assignee: Aldrin Piri
>            Priority: Minor
>         Attachments: MiNiFi-buggy.xml, MiNiFi-expected.xml, config-buggy.yml, 
> config-expected.yml, config.yml, minifi-flow.xml
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I followed this tutorial: [Getting started with 
> MiNiFi|https://nifi.apache.org/minifi/getting-started.html]
> And the problem was that, while transforming the Template to the yml-file, it 
> failed with: "Connection with id 10de7342-41ef-37a5-0000-000000000000 has 
> invalid destination id 9b02eb45-3c2d-3fb4-91cf-880d5038c0cd"
> {code:java}
> minifi-toolkit-0.5.0\bin\config.bat transform  MiNiFi-buggy.xml 
> config-buggy.yml
> There are validation errors with the template, still outputting YAML but it 
> will need to be edited.
> Connection with id 10de7342-41ef-37a5-0000-000000000000 has invalid 
> destination id 9b02eb45-3c2d-3fb4-91cf-880d5038c0cd
> {code}
> By the help of brosander@github (Thank you, mate!) we discovered that the 
> tool is confused by the targetId property:
> {code:xml}
>                     <contents>
>                         <inputPorts>
>                             <batchSettings/>
>                             <comments></comments>
>                             
> <concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
>                             <connected>true</connected>
>                             <exists>true</exists>
>                             
> <groupId>db4d2e20-016e-1000-d3c7-73a67e2b1d67</groupId>
>                             <id>9b02eb45-3c2d-3fb4-91cf-880d5038c0cd</id>
>                             <name>input_minifi</name>
>                             
> <targetId>dadd7f29-016e-1000-3c91-89495c813674</targetId>
>                             <targetRunning>false</targetRunning>
>                             <transmitting>false</transmitting>
>                             <useCompression>false</useCompression>
>                         </inputPorts>
>                     </contents>
> {code}
> just by removing the {{targetId}}, the toolkit runs through:
> {code:java}
> minifi-toolkit-0.5.0\bin\config.bat transform   MiNiFi-expected.xml 
> config-expected.yml
> No validation errors found in converted configuration.
> {code}
> The produced files differ:
> {code:java}
> diff config-buggy.yml config-expected.yml
> 101c101
> <     - id: dadd7f29-016e-1000-3c91-89495c813674
> ---
> >     - id: 9b02eb45-3c2d-3fb4-91cf-880d5038c0cd
> {code}
> -I tested it and NiFi discovers MiNiFi, everything seems fine.-
> EDIT:
> I celebrated to early. Removing the {{targetId}} is *not* a working 
> workaround. The easiest way to get around this issue is to downgrade NiFi 
> from 1.10 to 1.9.2.
> Originally I thought this is a MiNiFi issue, but now I'm thinking that 
> something changed in NiFi from 1.9.2 to 1.10.0 when exporting Templates. The 
> ids are mixed up. This could be a much more critical bug, than I initially 
> thought.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to