Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Unable to copy file from NIFI to HDFS

avatar

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