<?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: How to display Hive variable values in logging? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-display-Hive-variable-values-in-logging/m-p/183657#M64703</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2593/zackriesland.html" nodeid="2593"&gt;@Zack Riesland&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;As far as I know there is no such config property. You may have to write additional lines in your hive script to view the values/redirect them to a separate file.&lt;/P&gt;&lt;P&gt;You can view the value using &lt;/P&gt;&lt;PRE&gt;select ${hiveconf.my_variable};&lt;/PRE&gt;&lt;P&gt;To see values of all the variables you may use&lt;/P&gt;&lt;PRE&gt;set -v&lt;/PRE&gt;</description>
    <pubDate>Tue, 11 Jul 2017 22:46:06 GMT</pubDate>
    <dc:creator>dineshc</dc:creator>
    <dc:date>2017-07-11T22:46:06Z</dc:date>
    <item>
      <title>How to display Hive variable values in logging?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-display-Hive-variable-values-in-logging/m-p/183656#M64702</link>
      <description>&lt;P&gt;Suppose I have a Hive query like this:&lt;/P&gt;&lt;P&gt;insert into table my_table &lt;/P&gt;&lt;P&gt;select 1, ${hiveconf:my_variable} &lt;/P&gt;&lt;P&gt;from some_other_table;&lt;/P&gt;&lt;P&gt;Is there a config setting so that the value of "my_variable" will be displayed in the logging or in the verbose output of the query?&lt;/P&gt;&lt;P&gt;All I ever see is "${hiveconf:my_variable}".&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 17:29:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-display-Hive-variable-values-in-logging/m-p/183656#M64702</guid>
      <dc:creator>zack_riesland</dc:creator>
      <dc:date>2017-07-11T17:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to display Hive variable values in logging?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-display-Hive-variable-values-in-logging/m-p/183657#M64703</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2593/zackriesland.html" nodeid="2593"&gt;@Zack Riesland&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;As far as I know there is no such config property. You may have to write additional lines in your hive script to view the values/redirect them to a separate file.&lt;/P&gt;&lt;P&gt;You can view the value using &lt;/P&gt;&lt;PRE&gt;select ${hiveconf.my_variable};&lt;/PRE&gt;&lt;P&gt;To see values of all the variables you may use&lt;/P&gt;&lt;PRE&gt;set -v&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jul 2017 22:46:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-display-Hive-variable-values-in-logging/m-p/183657#M64703</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-07-11T22:46:06Z</dc:date>
    </item>
  </channel>
</rss>

