<?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>topic Re: Executing a Linux command using a tSystem component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284366#M58070</link>
    <description>&lt;P&gt;as 100% working variant - use .sh file instead of command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I remember we also meet with cases when tSystem do not work as expected and start use bash scripts instead, it often adds additional&amp;nbsp;flexibility&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 14:22:27 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2019-04-26T14:22:27Z</dc:date>
    <item>
      <title>Executing a Linux command using a tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284362#M58066</link>
      <description>&lt;P&gt;Helllo,&lt;/P&gt; 
&lt;P&gt;I need to execute this linux command:&lt;/P&gt; 
&lt;P&gt;sudo su - hdfs -c "echo -n &amp;gt; /opt/application/bdfalh/test/log/hdfs-audit.log"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in tSystem, I used:&lt;/P&gt; 
&lt;P&gt;"sudo su - hdfs -c \"echo -n &amp;gt; "+context.rep_filesystem_log_hdfs+"hdfs-audit.log\""&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried many different ways, single commen, array command, putting the command into a variable&lt;/P&gt; 
&lt;P&gt;nothing works so far.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;At the execution, Talend returns no error but nothing happens on the server&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Does anyone have any idea.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 10:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284362#M58066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-26T10:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a Linux command using a tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284363#M58067</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Did you check whether the Linux user which Talend is using to execute the command (say talend) is having the authorization to perform sudo su to hdfs user?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 11:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284363#M58067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-26T11:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a Linux command using a tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284364#M58068</link>
      <description>&lt;P&gt;add to&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;question (just to check):&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;does&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;context.rep_filesystem_log_hdfs&lt;/STRONG&gt; ended with / ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 11:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284364#M58068</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-04-26T11:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a Linux command using a tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284365#M58069</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;: absolutly, that user has the right, I add it to sudoers file, plus when I launch the command throw linux terminal in the server, it does work.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;: yes,&amp;nbsp;&lt;STRONG&gt;context.rep_filesystem_log_hdfs=/opt/hdp/log/hdfs/hdfs/&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Did you check whether the Linux user which Talend is using to execute the command (say talend) is having the authorization to perform sudo su to hdfs user?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;DIV class="UserSignature lia-message-signature"&gt;
  I wana add that I have two others tSystem (sudo cp and sudo mv), both work fine. 
&lt;/DIV&gt; 
&lt;DIV class="UserSignature lia-message-signature"&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV class="UserSignature lia-message-signature"&gt;
  Regards 
&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Apr 2019 13:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284365#M58069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-26T13:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a Linux command using a tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284366#M58070</link>
      <description>&lt;P&gt;as 100% working variant - use .sh file instead of command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I remember we also meet with cases when tSystem do not work as expected and start use bash scripts instead, it often adds additional&amp;nbsp;flexibility&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 14:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284366#M58070</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-04-26T14:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a Linux command using a tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284367#M58071</link>
      <description>&lt;P&gt;thanks that works &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 14:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-a-Linux-command-using-a-tSystem-component/m-p/2284367#M58071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-26T14:24:31Z</dc:date>
    </item>
  </channel>
</rss>

