<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question NiFi ExecuteStreamCommand Processor Create Process error = 5, Access Denied in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-ExecuteStreamCommand-Processor-Create-Process-error-5/m-p/334423#M231759</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 "&lt;EM&gt;&lt;STRONG&gt;dir /a:-d /s /b "D:\Testing\UploadFile" | find /c ":"&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.stack.imgur.com/2hMUU.png" target="_blank" rel="nofollow noopener noreferrer"&gt;Execute Stream Command Processor Error&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.stack.imgur.com/DEn7F.png" target="_blank" rel="nofollow noopener noreferrer"&gt;Execute Stream Command Processor Properties&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate if anyone could help with an example and explanation. Thanks.&lt;/P&gt;&lt;P&gt;Note: the fileslocation set in the properties is the path to the file.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 08:20:58 GMT</pubDate>
    <dc:creator>techNerd</dc:creator>
    <dc:date>2022-01-24T08:20:58Z</dc:date>
    <item>
      <title>NiFi ExecuteStreamCommand Processor Create Process error = 5, Access Denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-ExecuteStreamCommand-Processor-Create-Process-error-5/m-p/334423#M231759</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 "&lt;EM&gt;&lt;STRONG&gt;dir /a:-d /s /b "D:\Testing\UploadFile" | find /c ":"&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.stack.imgur.com/2hMUU.png" target="_blank" rel="nofollow noopener noreferrer"&gt;Execute Stream Command Processor Error&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.stack.imgur.com/DEn7F.png" target="_blank" rel="nofollow noopener noreferrer"&gt;Execute Stream Command Processor Properties&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate if anyone could help with an example and explanation. Thanks.&lt;/P&gt;&lt;P&gt;Note: the fileslocation set in the properties is the path to the file.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 08:20:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-ExecuteStreamCommand-Processor-Create-Process-error-5/m-p/334423#M231759</guid>
      <dc:creator>techNerd</dc:creator>
      <dc:date>2022-01-24T08:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi ExecuteStreamCommand Processor Create Process error = 5, Access Denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-ExecuteStreamCommand-Processor-Create-Process-error-5/m-p/334439#M231766</link>
      <description>&lt;P&gt;Same&amp;nbsp;&lt;SPAN&gt;Command Arguments&lt;/SPAN&gt; are you able to run as user nifi (or the user who is responsible to run nifi service )against&amp;nbsp; path which is determine by&amp;nbsp;&lt;SPAN&gt;fileslocation outside of nifi at command prompt ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 12:47:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-ExecuteStreamCommand-Processor-Create-Process-error-5/m-p/334439#M231766</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2022-01-24T12:47:20Z</dc:date>
    </item>
  </channel>
</rss>

