You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Sivaprasanna Sethuraman (JIRA)" <ji...@apache.org> on 2018/12/06 16:58:00 UTC
[jira] [Closed] (NIFI-5876) PutHDFS executes with SUCESS, although
exception in logs and no file saved.
[ https://issues.apache.org/jira/browse/NIFI-5876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sivaprasanna Sethuraman closed NIFI-5876.
-----------------------------------------
Closing the issue as it is not a bug.
[~preja] Feel free to open it back, if you want to add more about why you feel this is a bug. Thanks.
> PutHDFS executes with SUCESS, although exception in logs and no file saved.
> ---------------------------------------------------------------------------
>
> Key: NIFI-5876
> URL: https://issues.apache.org/jira/browse/NIFI-5876
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.7.1
> Environment: NiFi on Windows 10
> Reporter: Jan-Henrik Preuss
> Priority: Minor
> Labels: windows
> Fix For: 1.8.0
>
>
> Issue:
> PutHDFS executes with SUCESS, although exception in logs and no file saved.
> Solution:
> Propagate exception to UI (with FAILURE status).
> Steps to reproduce
> # This error applies to an installation of Nifi on a MS Windows system
> # Make your own application properties file (e.g. myapp-nifi.properties) and link it in the main nifi.properties file (with property “nifi.variable.registry.properties=<mypath>/myapp-nifi.properties”)
> # Enter a new property “hadoop_conf=C:\bin\hadoop-2.7.1\etc\hadoop\core-site.xml,C:\bin\hadoop-2.7.1\etc\hadoop\hdfs-site.xml” in myapp-nifi.properties (Hadoop is installed in the corresponding directory)
> # The backslashes of the directory path of the configuration are the important thing to look at
> # Restart Nifi to take the configuration change into account
> # Open the properties configuration of the PutHDFS processor
> # Set the " Hadoop Configuration Resources" to the variable key of the external property: ${hadoop_conf}.
> # Execute the flow/processor with some path and filename to put into HDFS.
> # Processor executes with SUCCESS
> # Log file shows "java.lang.reflect.InvocationTargetException: null"
> # No file is written into HDFS
> Example external properties file:
> hadoop_conf=C:\bin\hadoop-2.7.1\etc\hadoop\core-site.xml,C:\bin\hadoop-2.7.1\etc\hadoop\hdfs-site.xml
> Setting the path value directly in the PutHDFS processor with the "\" path can be used and executes correct (no error, file is stored in HDFS).
> Workaround:
> Replace windows backslah "\" with "/" in the external property file (e.g. hadoop_conf=C:/bin/hadoop-2.7.1/etc/hadoop/core-site.xml,C:/bin/hadoop-2.7.1/etc/hadoop/hdfs-site.xml).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)