<?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 Re: issues while runnig python script with command line arguments in execute stream command processor in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/issues-while-runnig-python-script-with-command-line/m-p/207403#M84049</link>
    <description>&lt;P&gt;Thanks for your Answer&lt;/P&gt;</description>
    <pubDate>Sat, 06 Oct 2018 02:48:36 GMT</pubDate>
    <dc:creator>sdendukuri</dc:creator>
    <dc:date>2018-10-06T02:48:36Z</dc:date>
    <item>
      <title>issues while runnig python script with command line arguments in execute stream command processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/issues-while-runnig-python-script-with-command-line/m-p/207401#M84047</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I am trying to execute python script using executestreamcommand processor . it was giving error "No Such file or Directory " even file is available in respective directory &lt;/P&gt;&lt;P&gt;my Flow =&amp;gt; Generate file processr --&amp;gt; Execute stream command processor&lt;/P&gt;&lt;P&gt;  I was two methods for passing  arguments to  Execute stream command processor for &lt;/P&gt;&lt;P&gt;Method 1:&lt;/P&gt;&lt;P&gt;${arg1},${argg} are passed by generate file processor &lt;/P&gt;&lt;P&gt;commandarguments :/home/suresh/Desktop/wquest1.py ${arg1};${arg2}&lt;/P&gt;&lt;P&gt;command path : python3.6 &lt;/P&gt;&lt;P&gt;Method 2:  &lt;/P&gt;&lt;P&gt;commandarguments : wquest1.py ${arg1};${arg2}&lt;/P&gt;&lt;P&gt;command path : python3.6&lt;/P&gt;&lt;P&gt;Working directory : /home/suresh/Desktop/&lt;/P&gt;&lt;P&gt;Please help me on this issue . Thanks for your time and consideration &lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 02:40:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/issues-while-runnig-python-script-with-command-line/m-p/207401#M84047</guid>
      <dc:creator>sdendukuri</dc:creator>
      <dc:date>2018-10-05T02:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: issues while runnig python script with command line arguments in execute stream command processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/issues-while-runnig-python-script-with-command-line/m-p/207402#M84048</link>
      <description>&lt;P&gt;For "command path" you probably want something like: "/usr/bin/python3.6" or "/usr/bin/python3" &lt;/P&gt;&lt;P&gt;You can find the exact path to Python by issuing "which python3" from a shell. It may vary between distributions.&lt;/P&gt;&lt;P&gt;When you execute a script through NiFi it doesn't have the environment variables set like a regular user with shell access might. One of these very important environment variables is PATH, which includes the location of /bin and /usr/bin , so when you type "python" at a shell, it knows where to look for whatever "python" is if it's not found in the current directory.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 11:06:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/issues-while-runnig-python-script-with-command-line/m-p/207402#M84048</guid>
      <dc:creator>l_skibinski</dc:creator>
      <dc:date>2018-10-05T11:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: issues while runnig python script with command line arguments in execute stream command processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/issues-while-runnig-python-script-with-command-line/m-p/207403#M84049</link>
      <description>&lt;P&gt;Thanks for your Answer&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 02:48:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/issues-while-runnig-python-script-with-command-line/m-p/207403#M84049</guid>
      <dc:creator>sdendukuri</dc:creator>
      <dc:date>2018-10-06T02:48:36Z</dc:date>
    </item>
  </channel>
</rss>

