<?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: can not connect to beeline from user in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-not-connect-to-beeline-from-user/m-p/196482#M80966</link>
    <description>&lt;P&gt;See this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html" target="_blank"&gt;https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jul 2018 01:21:32 GMT</pubDate>
    <dc:creator>br_gilvan</dc:creator>
    <dc:date>2018-07-24T01:21:32Z</dc:date>
    <item>
      <title>can not connect to beeline from user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-not-connect-to-beeline-from-user/m-p/196480#M80964</link>
      <description>&lt;P&gt;I am not able to connect beeline from user tom but I am able to connect from hive .&lt;/P&gt;&lt;P&gt;Hive :&lt;/P&gt;&lt;PRE&gt;!connect jdbc:hive2://noescape.c.test:10000/default;principal=hive/noescape.c.test@EXAMPLE.COM&lt;/PRE&gt;&lt;P&gt;here i am connected from hive &lt;/P&gt;&lt;P&gt;but when I go form tom it is not getting connected .&lt;/P&gt;&lt;PRE&gt;!connect jdbc:hive2://noescape.c.test:10000/default;principal=tom@EXAMPLE.COM&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Kerberos principal should have 3 parts: tom@EXAMPLE.COM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I &lt;/STRONG&gt;tried different way also but no luck :&lt;/P&gt;&lt;P&gt;from root I did kinit tom&lt;/P&gt;&lt;P&gt;then beeline and !connect jdbc:hive2://noescape.c.test:10000/default it prompted for username and password , username tom and provided same password which i did while executing kinit tom . but this way below error :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could not open client transport with JDBC Uri: jdbc:hive2://&amp;lt;host&amp;gt;:10000/default;: Peer indicated failure: Unsupported mechanism type PLAIN (state=08S01,code=0)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 13:37:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-not-connect-to-beeline-from-user/m-p/196480#M80964</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-07-22T13:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: can not connect to beeline from user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-not-connect-to-beeline-from-user/m-p/196481#M80965</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;/A&gt; While logging in a Kerberized environment, you need to pass service principal name, in this case, hiveserver2 service principal name as part of JDBC connect string&lt;/P&gt;&lt;P&gt;eg:- principal=hive/_HOST@REALM&lt;/P&gt;&lt;P&gt;	You can do a knit and then login using beeline with connect string as below&lt;/P&gt;&lt;PRE&gt;!connect jdbc:hive2://noescape.c.test:10000/default;principal=hive/_HOST@EXAMPLE.COM&lt;/PRE&gt;&lt;P&gt;Note: _HOST will be replaced as Hiveserver2 hostname&lt;/P&gt;&lt;P&gt;and the ticket will be picked from your local ticket cache. You may be prompted for username and password which can be ignored, press enter key twice.&lt;/P&gt;&lt;P&gt;Also you can try using below url if you do not wish to be prompted for username and password&lt;/P&gt;&lt;PRE&gt;beeline -u "jdbc:hive2://noescape.c.test:10000/default;principal=hive/_HOST@EXAMPLE.COM"&lt;/PRE&gt;&lt;P&gt;For more info on JDBC Sample connect string, please refer below HCC article and Apache documents:&lt;/P&gt;&lt;P&gt;Ref: &lt;A href="https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html" target="_blank"&gt;https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-Beeline%E2%80%93CommandLineShell" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-Beeline%E2%80%93CommandLineShell&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 12:21:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-not-connect-to-beeline-from-user/m-p/196481#M80965</guid>
      <dc:creator>cravani</dc:creator>
      <dc:date>2018-07-23T12:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: can not connect to beeline from user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-not-connect-to-beeline-from-user/m-p/196482#M80966</link>
      <description>&lt;P&gt;See this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html" target="_blank"&gt;https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 01:21:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-not-connect-to-beeline-from-user/m-p/196482#M80966</guid>
      <dc:creator>br_gilvan</dc:creator>
      <dc:date>2018-07-24T01:21:32Z</dc:date>
    </item>
  </channel>
</rss>

