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

[jira] [Assigned] (NIFI-5159) SimpleCsvFileLookupService doesn't resolve 'variables' properly

     [ https://issues.apache.org/jira/browse/NIFI-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre Villard reassigned NIFI-5159:
------------------------------------

    Assignee: Pierre Villard

> SimpleCsvFileLookupService doesn't resolve 'variables' properly
> ---------------------------------------------------------------
>
>                 Key: NIFI-5159
>                 URL: https://issues.apache.org/jira/browse/NIFI-5159
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.6.0
>            Reporter: Daniel Arnaiz
>            Assignee: Pierre Villard
>            Priority: Major
>             Fix For: 1.7.0
>
>
> - Create a new process Group.
> - Add "Variables" from UI to the process group scope:
>    csv=d:\tmp\mycsv.csv
> - Create a controller service SimpleCsvFileLookupService in Group scope.
> - Configure attribute "CSV File" as ${csv}
> - Enable the controller service, so got an error:
> 2018-05-07 08:56:11,160 DEBUG [Timer-Driven Process Thread-10] o.a.n.lookup.SimpleCsvFileLookupService SimpleCsvFileLookupService[id=c7639ef7-9932-3ae8-d4df-b0eaf5dce379] Loading lookup table from file: ${csv}
> java.io.FileNotFoundException: ${csv} (El sistema no puede encontrar el archivo especificado)
>  at java.io.FileInputStream.open0(Native Method)
>  at java.io.FileInputStream.open(FileInputStream.java:195)
>  at java.io.FileInputStream.<init>(FileInputStream.java:138)
>  at java.io.FileInputStream.<init>(FileInputStream.java:93)
>  at java.io.FileReader.<init>(FileReader.java:58)
>  at org.apache.nifi.lookup.SimpleCsvFileLookupService.loadCache(SimpleCsvFileLookupService.java:139)
> at org.apache.nifi.lookup.SimpleCsvFileLookupService.onEnabled(SimpleCsvFileLookupService.java:190)



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