Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

NiFi ExecuteStreamCommand Processor Create Process error = 5, Access Denied

avatar
Contributor

Hi, 

 

I am currently trying to count the number of files in the directory. The command that I keyed to count in the windows command prompt is "dir /a:-d /s /b "D:\Testing\UploadFile" | find /c ":""

I am trying to use NiFi to apply the above command using the ExecuteStreamCommand processor. Currently I am facing the "Access Denied error" as shown in the picture.

 

Execute Stream Command Processor Error

Execute Stream Command Processor Properties

 

Appreciate if anyone could help with an example and explanation. Thanks.

Note: the fileslocation set in the properties is the path to the file.

1 REPLY 1

avatar
Master Collaborator

Same Command Arguments are you able to run as user nifi (or the user who is responsible to run nifi service )against  path which is determine by fileslocation outside of nifi at command prompt ?