<?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>question Re: Nifi PutHiveQL from SelectHiveQL in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208533#M81454</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/86265/danilosousadba.html" nodeid="86265"&gt;@Danilo Sousa&lt;/A&gt;&lt;P&gt;If you want to move data between two hive tables then &lt;STRONG&gt;you don't need to use SelectHiveQL processor at all&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;You create hive statement like below&lt;/P&gt;&lt;PRE&gt;insert into &amp;lt;db_name&amp;gt;.&amp;lt;final_table&amp;gt; select * from &amp;lt;db_name&amp;gt;.&amp;lt;rawdata&amp;gt;&lt;/PRE&gt;&lt;P&gt;Then execute the above statement using &lt;STRONG&gt;PutHiveQL processor&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;To incrementally run this process then you need to store the state i.e. until what time you have already processed the data from rawdata table. Then only select the new data after the state value.&lt;/P&gt;&lt;P&gt;Please refer to &lt;A href="https://community.hortonworks.com/questions/182344/how-to-copy-data-from-a-hive-table-recurrently-usi.html" target="_blank"&gt;this&lt;/A&gt; and &lt;A href="https://community.hortonworks.com/questions/196134/nifi-pull-data-from-hive-external-table-and-load-i.html" target="_blank"&gt;this&lt;/A&gt; link for more details how to incrementally copy data in hive.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 06:41:07 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2018-08-01T06:41:07Z</dc:date>
    <item>
      <title>Nifi PutHiveQL from SelectHiveQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208532#M81453</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have the  Hive Rawdata External Table and need populate swap data from select * from rawdata.&lt;/P&gt;&lt;P&gt;The process is execute by crontab daily, and i want migrate the process to Nifi.&lt;/P&gt;&lt;P&gt;Whats best pratice for this question?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 03:14:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208532#M81453</guid>
      <dc:creator>danilosousadba</dc:creator>
      <dc:date>2018-08-01T03:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutHiveQL from SelectHiveQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208533#M81454</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/86265/danilosousadba.html" nodeid="86265"&gt;@Danilo Sousa&lt;/A&gt;&lt;P&gt;If you want to move data between two hive tables then &lt;STRONG&gt;you don't need to use SelectHiveQL processor at all&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;You create hive statement like below&lt;/P&gt;&lt;PRE&gt;insert into &amp;lt;db_name&amp;gt;.&amp;lt;final_table&amp;gt; select * from &amp;lt;db_name&amp;gt;.&amp;lt;rawdata&amp;gt;&lt;/PRE&gt;&lt;P&gt;Then execute the above statement using &lt;STRONG&gt;PutHiveQL processor&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;To incrementally run this process then you need to store the state i.e. until what time you have already processed the data from rawdata table. Then only select the new data after the state value.&lt;/P&gt;&lt;P&gt;Please refer to &lt;A href="https://community.hortonworks.com/questions/182344/how-to-copy-data-from-a-hive-table-recurrently-usi.html" target="_blank"&gt;this&lt;/A&gt; and &lt;A href="https://community.hortonworks.com/questions/196134/nifi-pull-data-from-hive-external-table-and-load-i.html" target="_blank"&gt;this&lt;/A&gt; link for more details how to incrementally copy data in hive.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:41:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208533#M81454</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-08-01T06:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutHiveQL from SelectHiveQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208534#M81455</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;&lt;P&gt;This is working.&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;Att.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 21:24:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208534#M81455</guid>
      <dc:creator>danilosousadba</dc:creator>
      <dc:date>2018-08-01T21:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutHiveQL from SelectHiveQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208535#M81456</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/18929/yaswanthmuppireddy.html"&gt;@Shu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I can cascade the executions?&lt;/P&gt;&lt;P&gt;After finish table A, start table B?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 00:49:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208535#M81456</guid>
      <dc:creator>danilosousadba</dc:creator>
      <dc:date>2018-08-03T00:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutHiveQL from SelectHiveQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208536#M81457</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/86265/danilosousadba.html" nodeid="86265"&gt;@Danilo Sousa&lt;/A&gt;&lt;P&gt;if you want to execute sequentially then you can use &lt;STRONG&gt;Success of PutHiveQL&lt;/STRONG&gt; processor to trigger another job(i.e. start table B).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Flow:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;1.GenerateFlowfile //start with tableA&lt;BR /&gt;2.PutHiveQL&lt;BR /&gt;3.ReplaceText //to prepare tableB statement
4.PutHiveQL&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Aug 2018 05:14:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHiveQL-from-SelectHiveQL/m-p/208536#M81457</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-08-03T05:14:00Z</dc:date>
    </item>
  </channel>
</rss>

