<?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: Insert else update into hive table using NIFI in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Insert-else-update-into-hive-table-using-NIFI/m-p/225699#M63635</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/20180/sateesh-reddy.html" nodeid="20180"&gt;@Sateesh Mandumula&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For reading from the RDBMS, you can use processors like QueryDatabaseTable or ExecuteSQL.  Hive now supports Merge which should cover your update else insert requirement, you can try using a PutHiveQL and seeing if you can issue the merge command using that.  Here are some relevant links to the documentation that should help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.3.0/org.apache.nifi.processors.standard.QueryDatabaseTable/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.3.0/org.apache.nifi.processors.standard.QueryDatabaseTable/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.3.0/org.apache.nifi.processors.standard.ExecuteSQL/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.3.0/org.apache.nifi.processors.standard.ExecuteSQL/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-Merge" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-Merge&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hive-nar/1.3.0/org.apache.nifi.processors.hive.PutHiveQL/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hive-nar/1.3.0/org.apache.nifi.processors.hive.PutHiveQL/index.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2017 22:22:45 GMT</pubDate>
    <dc:creator>ssahi</dc:creator>
    <dc:date>2017-06-26T22:22:45Z</dc:date>
    <item>
      <title>Insert else update into hive table using NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Insert-else-update-into-hive-table-using-NIFI/m-p/225698#M63634</link>
      <description>&lt;P&gt;I am planning to read from db2 database and do a update else insert into a hive table. what processors should be used to achive this.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 22:40:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Insert-else-update-into-hive-table-using-NIFI/m-p/225698#M63634</guid>
      <dc:creator>sateesh_reddy</dc:creator>
      <dc:date>2017-06-25T22:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Insert else update into hive table using NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Insert-else-update-into-hive-table-using-NIFI/m-p/225699#M63635</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/20180/sateesh-reddy.html" nodeid="20180"&gt;@Sateesh Mandumula&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For reading from the RDBMS, you can use processors like QueryDatabaseTable or ExecuteSQL.  Hive now supports Merge which should cover your update else insert requirement, you can try using a PutHiveQL and seeing if you can issue the merge command using that.  Here are some relevant links to the documentation that should help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.3.0/org.apache.nifi.processors.standard.QueryDatabaseTable/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.3.0/org.apache.nifi.processors.standard.QueryDatabaseTable/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.3.0/org.apache.nifi.processors.standard.ExecuteSQL/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.3.0/org.apache.nifi.processors.standard.ExecuteSQL/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-Merge" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-Merge&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hive-nar/1.3.0/org.apache.nifi.processors.hive.PutHiveQL/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hive-nar/1.3.0/org.apache.nifi.processors.hive.PutHiveQL/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 22:22:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Insert-else-update-into-hive-table-using-NIFI/m-p/225699#M63635</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-06-26T22:22:45Z</dc:date>
    </item>
  </channel>
</rss>

