<?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 passing convext parameter value to the shell scripts in tSSH to execute the Hive scripts in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/passing-convext-parameter-value-to-the-shell-scripts-in-tSSH-to/m-p/2310268#M81410</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need some immediate help from you, I have job that run the shell scripts in the Hive, for that I need some parameters to be passed from the context variable (context.batch_ID) some are directly given like table name like material_detail and so on.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using tSSH component to do this , the below is my code in the tSSH component , but when I run the script its saying&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;"sh: Load_EDW_Table_v1_0.sh: No such file or directory" &lt;/STRONG&gt;and nothing got executed, but the server , directory are correct. what's wrong with this syntax ? if its wrong tell me how to pass the parameter value outside the scripts ? can anyone help ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;tSSH component comment:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;"sh Load_EDW_Table_v1_0.sh '"+context.Batch_ID+"' material_detail Material_PK /root/EDWTableLoad/HiveQl/Script_scdtype2_edw_layer_material_detail_v1_0.sql"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;My shell scripts parameters:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;# send the batch number as parameter to all shell script&lt;BR /&gt;vbatchNumber=${1}&lt;BR /&gt;# send the edw table as parameter to all shell script&lt;BR /&gt;vtablename=${2}&lt;BR /&gt;# send the edw table as parameter to all shell script&lt;BR /&gt;vPrimaykey=${3}&lt;BR /&gt;# send the module or sql script name parameter to all shell script&lt;BR /&gt;vmoduleName=${4}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;by&lt;/P&gt; 
&lt;P&gt;Tamil&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:07:16 GMT</pubDate>
    <dc:creator>TamilM</dc:creator>
    <dc:date>2024-11-16T09:07:16Z</dc:date>
    <item>
      <title>passing convext parameter value to the shell scripts in tSSH to execute the Hive scripts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/passing-convext-parameter-value-to-the-shell-scripts-in-tSSH-to/m-p/2310268#M81410</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need some immediate help from you, I have job that run the shell scripts in the Hive, for that I need some parameters to be passed from the context variable (context.batch_ID) some are directly given like table name like material_detail and so on.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using tSSH component to do this , the below is my code in the tSSH component , but when I run the script its saying&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;"sh: Load_EDW_Table_v1_0.sh: No such file or directory" &lt;/STRONG&gt;and nothing got executed, but the server , directory are correct. what's wrong with this syntax ? if its wrong tell me how to pass the parameter value outside the scripts ? can anyone help ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;tSSH component comment:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;"sh Load_EDW_Table_v1_0.sh '"+context.Batch_ID+"' material_detail Material_PK /root/EDWTableLoad/HiveQl/Script_scdtype2_edw_layer_material_detail_v1_0.sql"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;My shell scripts parameters:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;# send the batch number as parameter to all shell script&lt;BR /&gt;vbatchNumber=${1}&lt;BR /&gt;# send the edw table as parameter to all shell script&lt;BR /&gt;vtablename=${2}&lt;BR /&gt;# send the edw table as parameter to all shell script&lt;BR /&gt;vPrimaykey=${3}&lt;BR /&gt;# send the module or sql script name parameter to all shell script&lt;BR /&gt;vmoduleName=${4}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;by&lt;/P&gt; 
&lt;P&gt;Tamil&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/passing-convext-parameter-value-to-the-shell-scripts-in-tSSH-to/m-p/2310268#M81410</guid>
      <dc:creator>TamilM</dc:creator>
      <dc:date>2024-11-16T09:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: passing convext parameter value to the shell scripts in tSSH to execute the Hive scripts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/passing-convext-parameter-value-to-the-shell-scripts-in-tSSH-to/m-p/2310269#M81411</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try to add the path before the script name, giving:&lt;BR /&gt;/usr/blablabla/Load_EDW_Table_v1_0.sh</description>
      <pubDate>Mon, 30 Oct 2017 12:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/passing-convext-parameter-value-to-the-shell-scripts-in-tSSH-to/m-p/2310269#M81411</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-10-30T12:57:18Z</dc:date>
    </item>
  </channel>
</rss>

