<?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 How can I set mapreduce/hive job parameters in a tHiveInput query? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveInput/m-p/2238194#M26390</link>
    <description>&lt;P&gt;I am trying to export the output of the following query . Before that I want to set some hive properties.&lt;/P&gt;
&lt;P&gt;SET hive.execution.engine=tez;&lt;/P&gt;
&lt;P&gt;SET hive.tez.container.size=8192;&lt;/P&gt;
&lt;P&gt;set hive.merge.mapfiles=true;&lt;/P&gt;
&lt;P&gt;set hive.merge.mapredfiles=true;&lt;/P&gt;
&lt;P&gt;set hive.merge.tezfiles=true;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am building the query using various context variables.&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;"&lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;select&lt;/FONT&gt;&lt;FONT size="2"&gt; tbl.hd &lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;from&lt;/FONT&gt;&lt;FONT size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;select&lt;/FONT&gt;&lt;FONT size="2"&gt; tab1.hd, tab1.cl1 &lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;from&lt;/FONT&gt;&lt;FONT size="2"&gt; (" &lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+&lt;/FONT&gt;&lt;FONT size="2"&gt; context.getProperty("CUSTOM_SEL") &lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+&lt;/FONT&gt;&lt;FONT size="2"&gt; context.getProperty("HDR_COL) &lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+&lt;/FONT&gt;&lt;FONT size="2"&gt; context.getProperty("CUST_HEADER") &lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+ &lt;/FONT&gt;&lt;FONT size="2"&gt;context.getProperty("CUST_UNION") &lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+ &lt;/FONT&gt;&lt;FONT size="2"&gt;context.SQL_TEXT&lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+&lt;/FONT&gt;&lt;FONT size="2"&gt;") tab1 &lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;order&lt;/FONT&gt; &lt;FONT color="#3220a0" size="2"&gt;by&lt;/FONT&gt;&lt;FONT size="2"&gt; tab1.cl1 &lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;asc&lt;/FONT&gt;&lt;FONT size="2"&gt; ) tbl" &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Is there way I can execute the SET hive parameters before executing select query ?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:42:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:42:55Z</dc:date>
    <item>
      <title>How can I set mapreduce/hive job parameters in a tHiveInput query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveInput/m-p/2238194#M26390</link>
      <description>&lt;P&gt;I am trying to export the output of the following query . Before that I want to set some hive properties.&lt;/P&gt;
&lt;P&gt;SET hive.execution.engine=tez;&lt;/P&gt;
&lt;P&gt;SET hive.tez.container.size=8192;&lt;/P&gt;
&lt;P&gt;set hive.merge.mapfiles=true;&lt;/P&gt;
&lt;P&gt;set hive.merge.mapredfiles=true;&lt;/P&gt;
&lt;P&gt;set hive.merge.tezfiles=true;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am building the query using various context variables.&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;"&lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;select&lt;/FONT&gt;&lt;FONT size="2"&gt; tbl.hd &lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;from&lt;/FONT&gt;&lt;FONT size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;select&lt;/FONT&gt;&lt;FONT size="2"&gt; tab1.hd, tab1.cl1 &lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;from&lt;/FONT&gt;&lt;FONT size="2"&gt; (" &lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+&lt;/FONT&gt;&lt;FONT size="2"&gt; context.getProperty("CUSTOM_SEL") &lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+&lt;/FONT&gt;&lt;FONT size="2"&gt; context.getProperty("HDR_COL) &lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+&lt;/FONT&gt;&lt;FONT size="2"&gt; context.getProperty("CUST_HEADER") &lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+ &lt;/FONT&gt;&lt;FONT size="2"&gt;context.getProperty("CUST_UNION") &lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+ &lt;/FONT&gt;&lt;FONT size="2"&gt;context.SQL_TEXT&lt;/FONT&gt;&lt;FONT color="#b22200" size="2"&gt;+&lt;/FONT&gt;&lt;FONT size="2"&gt;") tab1 &lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;order&lt;/FONT&gt; &lt;FONT color="#3220a0" size="2"&gt;by&lt;/FONT&gt;&lt;FONT size="2"&gt; tab1.cl1 &lt;/FONT&gt;&lt;FONT color="#3220a0" size="2"&gt;asc&lt;/FONT&gt;&lt;FONT size="2"&gt; ) tbl" &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Is there way I can execute the SET hive parameters before executing select query ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveInput/m-p/2238194#M26390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set mapreduce/hive job parameters in a tHiveInput query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveInput/m-p/2238195#M26391</link>
      <description>&lt;P&gt;In the tHiveConnection component, click the 'Advanced settings', click the '+' under 'Hive Properties' and for each property:&lt;/P&gt;&lt;P&gt;Property&lt;/P&gt;&lt;P&gt;"hive.execution.engine"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;"tez"&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 18:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveInput/m-p/2238195#M26391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-01T18:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set mapreduce/hive job parameters in a tHiveInput query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveInput/m-p/2238196#M26392</link>
      <description>&lt;P&gt;Yes. That works. But we have parameterized the query and we want to parameterize those&amp;nbsp;&amp;nbsp; "HIVE Set params" through a context variable. That way we can set different set of parameters for different hive queries. This way we have to hard code it for all the queries.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 23:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveInput/m-p/2238196#M26392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-30T23:53:46Z</dc:date>
    </item>
  </channel>
</rss>

