<?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: How can I set mapreduce/hive job parameters in a tHiveRow query? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveRow-query/m-p/2262088#M42667</link>
    <description>Hi,
&lt;BR /&gt;i have a similar issue.
&lt;BR /&gt;i get my job running in that way :
&lt;BR /&gt;"SET hive.exec.compress.output=true" +
&lt;BR /&gt;"SET io.seqfile.compression.type=BLOCK" +
&lt;BR /&gt;"insert overwrite ..."
&lt;BR /&gt;or in that way:
&lt;BR /&gt;"SET hive.exec.compress.output=true; 
&lt;BR /&gt;"SET io.seqfile.compression.type=BLOCK;
&lt;BR /&gt;insert overwrite ..."
&lt;BR /&gt;but in both cases the insert statement is not executed. it seems that the first SET statement would be executed and that s all.
&lt;BR /&gt;Any advice would be good (Talend 5.2).
&lt;BR /&gt;Jean-Charles</description>
    <pubDate>Wed, 24 Jul 2013 12:31:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-24T12:31:53Z</dc:date>
    <item>
      <title>How can I set mapreduce/hive job parameters in a tHiveRow query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveRow-query/m-p/2262086#M42665</link>
      <description>I am trying to run the following query to insert a new partition into a hive table, but I want to make sure that compression is turned on and that bucketing is envorced. To do that I need to set some job parameters. The following query will not execute if I have the SET param=value lines: 
&lt;BR /&gt;"SET hive.exec.compress.output=true; 
&lt;BR /&gt; SET io.seqfile.compression.type=BLOCK; 
&lt;BR /&gt; SET mapred.output.compression.type=RECORD; 
&lt;BR /&gt; SET mapred.compress.map.output=true; 
&lt;BR /&gt; SET mapred.output.compression.codec=org.apache.hadoop.io.compress.DefaultCodec; 
&lt;BR /&gt; SET hive.enforce.bucketing = true; 
&lt;BR /&gt; INSERT OVERWRITE TABLE t_mytable PARTITION(activity_date='" + TalendDate.formatDate("yyyy-MM-dd", context.DATE) + "') SELECT * from tmp_mytable" 
&lt;BR /&gt;If I remove the SET lines, it works, but does not compress my data. Is there a way to set these parameters? Or do I just have to set them on the hiveserver(thrift) side?</description>
      <pubDate>Wed, 24 Oct 2012 22:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveRow-query/m-p/2262086#M42665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-24T22:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set mapreduce/hive job parameters in a tHiveRow query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveRow-query/m-p/2262087#M42666</link>
      <description>hi 
&lt;BR /&gt;In the SET commands that u have mentiones here, i see the semicolon been put at the end.. (";").Please remove them while being used in tHiveRow.Then it will work. 
&lt;BR /&gt;"SET hive.exec.compress.output=true" 
&lt;BR /&gt;"SET io.seqfile.compression.type=BLOCK"</description>
      <pubDate>Fri, 26 Oct 2012 07:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveRow-query/m-p/2262087#M42666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-26T07:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set mapreduce/hive job parameters in a tHiveRow query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveRow-query/m-p/2262088#M42667</link>
      <description>Hi,
&lt;BR /&gt;i have a similar issue.
&lt;BR /&gt;i get my job running in that way :
&lt;BR /&gt;"SET hive.exec.compress.output=true" +
&lt;BR /&gt;"SET io.seqfile.compression.type=BLOCK" +
&lt;BR /&gt;"insert overwrite ..."
&lt;BR /&gt;or in that way:
&lt;BR /&gt;"SET hive.exec.compress.output=true; 
&lt;BR /&gt;"SET io.seqfile.compression.type=BLOCK;
&lt;BR /&gt;insert overwrite ..."
&lt;BR /&gt;but in both cases the insert statement is not executed. it seems that the first SET statement would be executed and that s all.
&lt;BR /&gt;Any advice would be good (Talend 5.2).
&lt;BR /&gt;Jean-Charles</description>
      <pubDate>Wed, 24 Jul 2013 12:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-set-mapreduce-hive-job-parameters-in-a-tHiveRow-query/m-p/2262088#M42667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-24T12:31:53Z</dc:date>
    </item>
  </channel>
</rss>

