<?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: Execute Stream Command - Unable to remove files using Wilcards in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366229#M239516</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;tried your suggestion, however in that case this is the error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ray82_0-1678956949728.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36981i957B1CBFB90FE208/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ray82_0-1678956949728.png" alt="Ray82_0-1678956949728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 08:55:59 GMT</pubDate>
    <dc:creator>Ray82</dc:creator>
    <dc:date>2023-03-16T08:55:59Z</dc:date>
    <item>
      <title>Execute Stream Command - Unable to remove files using Wilcards</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366178#M239501</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;hope someone can point me in the right direction.&lt;/P&gt;&lt;P&gt;I need to delete all files starting with some attributes value, so based on Linux way it should be something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rm -f /opt/my_path/myfile_*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I decided to use Execute Stream Command in this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ray82_0-1678900528929.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36973i5D4986E2ACF77E93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ray82_0-1678900528929.png" alt="Ray82_0-1678900528929.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ray82_1-1678900558212.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36974iB3CDFE4A41DBFDCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ray82_1-1678900558212.png" alt="Ray82_1-1678900558212.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The path seem correct, the command generated, pasted into a Linux shell is working fine, however the processor did not delete the files.&lt;/P&gt;&lt;P&gt;If i try with a specific file it works fine.&lt;/P&gt;&lt;P&gt;Seems that * is not permitted, any clue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks to everybody...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 17:18:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366178#M239501</guid>
      <dc:creator>Ray82</dc:creator>
      <dc:date>2023-03-15T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Stream Command - Unable to remove files using Wilcards</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366222#M239512</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/99747"&gt;@Ray82&lt;/a&gt; , I am shooting here in the blind, but have you tried setting the command Path = /usr/bin only and the Command arguments = rm -f and_everytyhing_else?&lt;BR /&gt;I am asking because I am using the ExecuteStreamCommand similar as you are but with python and within the command path i set python and the entire thing I have to execute under the command arguments and it works like a charm. It might not be the recommended way of using this processor but at least I got my things running.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 08:01:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366222#M239512</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-03-16T08:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Stream Command - Unable to remove files using Wilcards</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366229#M239516</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;tried your suggestion, however in that case this is the error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ray82_0-1678956949728.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36981i957B1CBFB90FE208/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ray82_0-1678956949728.png" alt="Ray82_0-1678956949728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 08:55:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366229#M239516</guid>
      <dc:creator>Ray82</dc:creator>
      <dc:date>2023-03-16T08:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Stream Command - Unable to remove files using Wilcards</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366236#M239520</link>
      <description>&lt;P&gt;hmmm, try maybe with:&lt;BR /&gt;Command Path = bash&lt;BR /&gt;Command Arguments = -c;"rm -f /home/bigdata/testFolder/myfile_*"&lt;BR /&gt;I tried this on my local machine and it seems to be working accordingly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cotopaul_1-1678959773167.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36984i7BAEA42975D8F83B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cotopaul_1-1678959773167.png" alt="cotopaul_1-1678959773167.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:43:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366236#M239520</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-03-16T09:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Stream Command - Unable to remove files using Wilcards</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366237#M239521</link>
      <description>&lt;P&gt;This should work, in the past i've tried the same command with ExecuteProcess but it didn't accept upstream connections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solution is working great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thabks for your supporto.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:57:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Execute-Stream-Command-Unable-to-remove-files-using-Wilcards/m-p/366237#M239521</guid>
      <dc:creator>Ray82</dc:creator>
      <dc:date>2023-03-16T09:57:21Z</dc:date>
    </item>
  </channel>
</rss>

