[
https://issues.apache.org/jira/browse/MINIFICPP-1431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767138#comment-17767138
]
Marton Szasz commented on MINIFICPP-1431:
-----------------------------------------
Could you try with the latest version? If this is still an issue, please share
your config.yml
> Minifi cpp putfile error for replace strategy
> ---------------------------------------------
>
> Key: MINIFICPP-1431
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1431
> Project: Apache NiFi MiNiFi C++
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: windows 10
> Reporter: sunilkumar
> Priority: Major
> Labels: minifi-cpp
> Attachments: minifi-app.log
>
>
> The minifi cpp 0.7.0 version uses nifi core libraries of version 0.7.0 here
> the putfile processor works fine in nifi env, but when the same flow is
> converted to config.yml and run on the minifi cpp agent the replace file
> strategy is giving
> error: can not rename()
>
> [2020-12-11 12:54:32.464] [org::apache::nifi::minifi::processors::PutFile]
> [warning] Destination file C:\\Program Files
> (x86)\\ApacheNiFiMiNiFi\\nifi-minifi-cpp\\NewConfigYML\\Generate_FF\GEN.txt
> exists; applying Conflict Resolution Strategy: replace
> [2020-12-11 12:54:32.480]
> [org::apache::nifi::minifi::processors::PutFile::ReadCallback] [info] PutFile
> committing put file operation to C:\\Program Files
> (x86)\\ApacheNiFiMiNiFi\\nifi-minifi-cpp\\NewConfigYML\\Generate_FF\GEN.txt
> [2020-12-11 12:54:32.482]
> [org::apache::nifi::minifi::processors::PutFile::ReadCallback] [info] PutFile
> commit put file operation to C:\\Program Files
> (x86)\\ApacheNiFiMiNiFi\\nifi-minifi-cpp\\NewConfigYML\\Generate_FF\GEN.txt
> failed because rename() call failed
>
> Can anyone tell this error resolution? i need to replace the same file with
> new one funtionality.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)