<?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: beeline - no current connection in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-no-current-connection/m-p/147661#M52663</link>
    <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/12496/nichopper.html"&gt;@Nic Hopper&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you have Kerberos enabled you need to connect as:&lt;/P&gt;&lt;PRE&gt;!connect jdbc:hive2://&amp;lt;hiveserver2_hostname&amp;gt;:10001/&amp;lt;database_name&amp;gt;;transportMode=http;httpPath=cliservice;principal=&amp;lt;hive_principal&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Jan 2017 23:13:38 GMT</pubDate>
    <dc:creator>dkozlowski</dc:creator>
    <dc:date>2017-01-26T23:13:38Z</dc:date>
    <item>
      <title>beeline - no current connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-no-current-connection/m-p/147659#M52661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm currently working through tutorial&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#section_4" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#section_4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Section 2.2.10 - Beeline&lt;/P&gt;&lt;P&gt;As instructed I do the following &lt;/P&gt;&lt;P&gt;1. Run Putty &lt;/P&gt;&lt;P&gt;2. Login as maria_dev &lt;/P&gt;&lt;P&gt;3. run 'sudo su hive' (su hive just asks me for a password  and I've tried maria_dev's and roots with no luck) &lt;/P&gt;&lt;P&gt;4. run 'beeline' &lt;/P&gt;&lt;P&gt;5. beeline starts and I get the version number and the prompt changes to beeline&amp;gt; &lt;/P&gt;&lt;P&gt;But then no matter what I run I get the message back 'No current connection'. &lt;/P&gt;&lt;P&gt;Even if I run 'quit;'
The steps in the tutorial seem pretty basic so I dont know where I'm going wrong. Any ideas?&lt;/P&gt;&lt;P&gt;Thanks,
Nic
&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:47:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-no-current-connection/m-p/147659#M52661</guid>
      <dc:creator>NicHopper</dc:creator>
      <dc:date>2017-01-26T22:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: beeline - no current connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-no-current-connection/m-p/147660#M52662</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12496/nichopper.html" nodeid="12496"&gt;@Nic Hopper&lt;/A&gt;&lt;P&gt;After entering into beeline shell, you need to give connection string to connect to Hiveserver2.&lt;/P&gt;&lt;P&gt;Please use below command in beeline shell to connect to HS2&lt;/P&gt;&lt;PRE&gt;!connect jdbc:hive2://&amp;lt;hiveserver2-hostname-or-ip&amp;gt;:10000/&amp;lt;database-name&amp;gt;&lt;/PRE&gt;&lt;P&gt;After you run above command, you will have to provide username and password based on authentication mechanism that you have configured for Hiveserver2 (by default it's none)&lt;/P&gt;&lt;P&gt;Please refer below document for more details&lt;/P&gt;&lt;P&gt;&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;</description>
      <pubDate>Thu, 26 Jan 2017 22:54:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-no-current-connection/m-p/147660#M52662</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-01-26T22:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: beeline - no current connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-no-current-connection/m-p/147661#M52663</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/12496/nichopper.html"&gt;@Nic Hopper&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you have Kerberos enabled you need to connect as:&lt;/P&gt;&lt;PRE&gt;!connect jdbc:hive2://&amp;lt;hiveserver2_hostname&amp;gt;:10001/&amp;lt;database_name&amp;gt;;transportMode=http;httpPath=cliservice;principal=&amp;lt;hive_principal&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 23:13:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-no-current-connection/m-p/147661#M52663</guid>
      <dc:creator>dkozlowski</dc:creator>
      <dc:date>2017-01-26T23:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: beeline - no current connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-no-current-connection/m-p/147662#M52664</link>
      <description>&lt;P&gt;Thank you both for the responses. Greatly appreciate both.&lt;/P&gt;&lt;P&gt;Kuldeep - That worked perfectly&lt;/P&gt;&lt;P&gt;Daniel - Very useful to know, I'm sure it will end up being used down the line.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 16:59:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/beeline-no-current-connection/m-p/147662#M52664</guid>
      <dc:creator>NicHopper</dc:creator>
      <dc:date>2017-01-27T16:59:15Z</dc:date>
    </item>
  </channel>
</rss>

