Support Questions

Find answers, ask questions, and share your expertise

Unable to copy file from NIFI to HDFS

avatar
Contributor

I am trying to copy a file from Sandbox to HDFS using NIFI. File is succesfully picked up from NIFI using GetFile Processor but PutHDFS is not getting finished and its in progress for long time.

Let me share the configuration for the GetFile and PutHDFS:

GetFile

15295-getfile.png

PutHDFS

15296-puthdfs.png

I have placed the core-site.xml and hdfs-site.xml into NIFI root. And also I have created a folder MyData in HDFS (hadoop fs -mkdir /MyData) to output the file.

1 ACCEPTED SOLUTION

avatar
Master Mentor
@Muhammad Umar

Try providing the absolute path to your core-site.xml and hdfs-site.xml files in the putHDFS processor. Make sure these two files are readable by the user running your NiFi. Tail your nifi-app.log before staring the processor to see if it throws any error or warn log messages.

Thanks,

Matt

View solution in original post

2 REPLIES 2

avatar
Master Mentor
@Muhammad Umar

Try providing the absolute path to your core-site.xml and hdfs-site.xml files in the putHDFS processor. Make sure these two files are readable by the user running your NiFi. Tail your nifi-app.log before staring the processor to see if it throws any error or warn log messages.

Thanks,

Matt

avatar
Master Mentor

@Muhammad Umar

Did changing to absolute paths resolve your issue here?

If so, please mark answer as accepted.

Thank you,

Matt