<?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 tHiveLoad set partitions, make the partition be system date. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tHiveLoad-set-partitions-make-the-partition-be-system-date/m-p/2361674#M125978</link>
    <description>Hi everyone: 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; I am using tHiveLoad to load data into hive table, my hive table is as follow: 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hive&amp;gt; show create table jigou; 
&lt;BR /&gt;OK 
&lt;BR /&gt;CREATE TABLE `jigou`( 
&lt;BR /&gt;&amp;nbsp; `id` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column1` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column2` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column3` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column4` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column5` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column6` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column7` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column8` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column9` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column10` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column11` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column12` string) 
&lt;BR /&gt; 
&lt;FONT color="#ff33cc"&gt;&lt;B&gt;PARTITIONED BY (&amp;nbsp;&lt;/B&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff33cc"&gt;&lt;B&gt;&amp;nbsp; `dt` string)&lt;/B&gt;&lt;/FONT&gt; 
&lt;BR /&gt;ROW FORMAT DELIMITED&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; FIELDS TERMINATED BY '\u0001'&amp;nbsp; 
&lt;BR /&gt;STORED AS INPUTFORMAT&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; 'org.apache.hadoop.mapred.TextInputFormat'&amp;nbsp; 
&lt;BR /&gt;OUTPUTFORMAT&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' 
&lt;BR /&gt;LOCATION 
&lt;BR /&gt;&amp;nbsp; 'hdfs://h1:8020/apps/hive/warehouse/zhangchao.db/jigou' 
&lt;BR /&gt;TBLPROPERTIES ( 
&lt;BR /&gt;&amp;nbsp; 'transient_lastDdlTime'='1435650326') 
&lt;BR /&gt;Time taken: 0.474 seconds, Fetched: 26 row(s) 
&lt;BR /&gt; 
&lt;FONT color="#cc3333"&gt;&lt;B&gt;My talend work flow is as follow, I want to make the dt partition dynamic, each time the job is scheduled, it read the system date automaticly.&lt;/B&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Any help will be pleased.&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MARL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132789iA59BF3A61BC2ADAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MARL.png" alt="0683p000009MARL.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Sat, 16 Nov 2024 11:09:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:09:51Z</dc:date>
    <item>
      <title>tHiveLoad set partitions, make the partition be system date.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHiveLoad-set-partitions-make-the-partition-be-system-date/m-p/2361674#M125978</link>
      <description>Hi everyone: 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; I am using tHiveLoad to load data into hive table, my hive table is as follow: 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hive&amp;gt; show create table jigou; 
&lt;BR /&gt;OK 
&lt;BR /&gt;CREATE TABLE `jigou`( 
&lt;BR /&gt;&amp;nbsp; `id` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column1` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column2` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column3` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column4` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column5` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column6` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column7` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column8` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column9` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column10` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column11` string,&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; `column12` string) 
&lt;BR /&gt; 
&lt;FONT color="#ff33cc"&gt;&lt;B&gt;PARTITIONED BY (&amp;nbsp;&lt;/B&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff33cc"&gt;&lt;B&gt;&amp;nbsp; `dt` string)&lt;/B&gt;&lt;/FONT&gt; 
&lt;BR /&gt;ROW FORMAT DELIMITED&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; FIELDS TERMINATED BY '\u0001'&amp;nbsp; 
&lt;BR /&gt;STORED AS INPUTFORMAT&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; 'org.apache.hadoop.mapred.TextInputFormat'&amp;nbsp; 
&lt;BR /&gt;OUTPUTFORMAT&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' 
&lt;BR /&gt;LOCATION 
&lt;BR /&gt;&amp;nbsp; 'hdfs://h1:8020/apps/hive/warehouse/zhangchao.db/jigou' 
&lt;BR /&gt;TBLPROPERTIES ( 
&lt;BR /&gt;&amp;nbsp; 'transient_lastDdlTime'='1435650326') 
&lt;BR /&gt;Time taken: 0.474 seconds, Fetched: 26 row(s) 
&lt;BR /&gt; 
&lt;FONT color="#cc3333"&gt;&lt;B&gt;My talend work flow is as follow, I want to make the dt partition dynamic, each time the job is scheduled, it read the system date automaticly.&lt;/B&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Any help will be pleased.&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MARL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132789iA59BF3A61BC2ADAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MARL.png" alt="0683p000009MARL.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHiveLoad-set-partitions-make-the-partition-be-system-date/m-p/2361674#M125978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: tHiveLoad set partitions, make the partition be system date.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHiveLoad-set-partitions-make-the-partition-be-system-date/m-p/2361675#M125979</link>
      <description>change it to "dt=&lt;B&gt;'&lt;/B&gt;2015-06-30&lt;B&gt;'&lt;/B&gt;"&lt;BR /&gt;above should work for you, &amp;nbsp;I tested this sqoopLoad but you can test with Hive Load, as per my knowledge it&amp;nbsp;requires string values enclosed with single quote.&amp;nbsp;&lt;BR /&gt;and for dynamic date you can use below function.&amp;nbsp;&lt;BR /&gt;&lt;PRE&gt;"dt='"+TalendDate.getDate("yyyy-MM-dd")+"'"&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jun 2015 13:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHiveLoad-set-partitions-make-the-partition-be-system-date/m-p/2361675#M125979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-30T13:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: tHiveLoad set partitions, make the partition be system date.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHiveLoad-set-partitions-make-the-partition-be-system-date/m-p/2361676#M125980</link>
      <description>Thanks? I have used context variables to finish my goal.</description>
      <pubDate>Wed, 08 Jul 2015 11:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHiveLoad-set-partitions-make-the-partition-be-system-date/m-p/2361676#M125980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-08T11:39:35Z</dc:date>
    </item>
  </channel>
</rss>

