<?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 Beeline : Hive property to print current database name in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/232921#M194755</link>
    <description>&lt;P&gt;When using HiveCLI, if we&lt;/P&gt;&lt;PRE&gt;SET hive.cli.print.current.db = true;&lt;/PRE&gt;&lt;P&gt;Then the command prompt for Hive CLI displays the current database name until the end of the session as shown below:&lt;/P&gt;&lt;PRE&gt;hive mydb &amp;gt;&lt;/PRE&gt;&lt;P&gt;I tried using the same property in Beeline but had no effect. Is there a different way of achieving this in Beeline ?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2017 23:21:33 GMT</pubDate>
    <dc:creator>dineshc</dc:creator>
    <dc:date>2017-08-23T23:21:33Z</dc:date>
    <item>
      <title>Beeline : Hive property to print current database name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/232921#M194755</link>
      <description>&lt;P&gt;When using HiveCLI, if we&lt;/P&gt;&lt;PRE&gt;SET hive.cli.print.current.db = true;&lt;/PRE&gt;&lt;P&gt;Then the command prompt for Hive CLI displays the current database name until the end of the session as shown below:&lt;/P&gt;&lt;PRE&gt;hive mydb &amp;gt;&lt;/PRE&gt;&lt;P&gt;I tried using the same property in Beeline but had no effect. Is there a different way of achieving this in Beeline ?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 23:21:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/232921#M194755</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-08-23T23:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline : Hive property to print current database name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/232922#M194756</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13511/dineshchitlangia.html" nodeid="13511"&gt;@Dinesh Chitlangia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I did not try the following myswlf but looks promising:&lt;/P&gt;&lt;P&gt;In BeeLine in beeline mode use the &lt;STRONG&gt;--showDbInPrompt&lt;/STRONG&gt; command line option instead.&lt;/P&gt;&lt;P&gt;As per:  &lt;A href="https://issues.apache.org/jira/browse/HIVE-13899" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-13899&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;As per:  &lt;A href="https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;--showDbInPrompt=[true/false]     : &lt;/STRONG&gt;Display the current database name in prompt. Default is false.&lt;/P&gt;&lt;PRE&gt;Usage: beeline --showDbInPrompt=true&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Aug 2017 23:24:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/232922#M194756</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-23T23:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline : Hive property to print current database name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/232923#M194757</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; - Thank you for prompt response.&lt;/P&gt;&lt;P&gt;I see this only works for Beeline version 2.3.0 and latest.&lt;/P&gt;&lt;P&gt;I am currently using 1.2.1 and thus this will have no effect. However, I appreciate your help. I will try for a workaround for version 1.2.1, if nothing else works I will upgrade to 2.3.0 and accept your answer.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 23:57:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/232923#M194757</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-08-23T23:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline : Hive property to print current database name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/232924#M194758</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13511/dineshchitlangia.html" nodeid="13511"&gt;@Dinesh Chitlangia&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you.  Yes, this flag is added later in beeline "--&lt;STRONG&gt;showDbInPrompt",&lt;/STRONG&gt;  Before that ( &lt;A href="https://issues.apache.org/jira/browse/HIVE-14123"&gt;HIVE-14123&lt;/A&gt;  , fixed in 2.3.0) there was not option to display the database name. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13511/dineshchitlangia.html" nodeid="13511"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:31:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/232924#M194758</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-24T15:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline : Hive property to print current database name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/278105#M207839</link>
      <description>&lt;P&gt;yes, this works&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;beeline --showDbInPrompt=true -u "jdbc:hive2://...."&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 02:59:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/278105#M207839</guid>
      <dc:creator>ss05926</dc:creator>
      <dc:date>2019-09-24T02:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline : Hive property to print current database name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/278106#M207840</link>
      <description>&lt;P&gt;and I see, yes, i am using 2.3.3&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 03:01:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/278106#M207840</guid>
      <dc:creator>ss05926</dc:creator>
      <dc:date>2019-09-24T03:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline : Hive property to print current database name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/278119#M207850</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 07:02:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Hive-property-to-print-current-database-name/m-p/278119#M207850</guid>
      <dc:creator>Shahmen</dc:creator>
      <dc:date>2019-09-24T07:02:54Z</dc:date>
    </item>
  </channel>
</rss>

