<?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: Hive dynamic variable in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Hive-dynamic-variable/m-p/142303#M48244</link>
    <description>&lt;P&gt;I realized PutHiveQL supports parameterized Hive query and I went for that.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2016 14:46:30 GMT</pubDate>
    <dc:creator>ashsskum</dc:creator>
    <dc:date>2016-12-08T14:46:30Z</dc:date>
    <item>
      <title>NiFi: Hive dynamic variable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Hive-dynamic-variable/m-p/142301#M48242</link>
      <description>&lt;P&gt;In Hive script, we can set the variable and use in query.  Is there a way to achieve the similar behavior with ReplaceTextWithMapping prior to sending to PutHiveQL processor.  If it was one query, I could use the ReplaceText, but for multiple queries with different binding arguments, I am wondering if we could do that with ReplaceTextWithMapping processor.&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; set name='Kumar';
hive&amp;gt; set department='IT';
&lt;/PRE&gt;&lt;PRE&gt;hive&amp;gt; select * from emp where last_name = '{name}' and dept_name = '${department}';
hive&amp;gt; select * from emp where last_name = '{name}'; &lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Dec 2016 01:00:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Hive-dynamic-variable/m-p/142301#M48242</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-12-08T01:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Hive dynamic variable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Hive-dynamic-variable/m-p/142302#M48243</link>
      <description>&lt;P&gt;you can use expression language.&lt;/P&gt;&lt;P&gt;in you selecthiveql query you put your query as select * from tmp where last_name=${name}.. name will be replaced by the attribute value from your previous processors flow file. So add an updateAttribute before the selecthiveql processor and add attribute name with whatever value you want to set.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 01:25:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Hive-dynamic-variable/m-p/142302#M48243</guid>
      <dc:creator>knarayanan</dc:creator>
      <dc:date>2016-12-08T01:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Hive dynamic variable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Hive-dynamic-variable/m-p/142303#M48244</link>
      <description>&lt;P&gt;I realized PutHiveQL supports parameterized Hive query and I went for that.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 14:46:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Hive-dynamic-variable/m-p/142303#M48244</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-12-08T14:46:30Z</dc:date>
    </item>
  </channel>
</rss>

