<?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 -u &amp;quot;JDBC:hive2://url...&amp;quot; -n username  gives error while beeline  !connect &amp;quot;JDBC:hive2://url...&amp;quot;  works in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Beeline-u-quot-JDBC-hive2-url-quot-n-username-gives-error/m-p/176876#M139126</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11386/gauravmallik12.html" nodeid="11386"&gt;@Gaurav Mallikarjuna&lt;/A&gt; &lt;/P&gt;&lt;P&gt;In the above example you can notice that I used other method to connect to hiveserver2 - using hive2 node + its port number like&lt;/P&gt;&lt;PRE&gt;$ beeline -u "jdbc:hive2://dkhdp261c6.openstacklocal:10000/" -n admin
&lt;/PRE&gt;&lt;P&gt;Using &lt;STRONG&gt;&lt;EM&gt;admin&lt;/EM&gt;&lt;/STRONG&gt; is for my sample only.&lt;/P&gt;&lt;P&gt;In your case - if your transport mode is binary and the cluster is NON kerberized - &lt;/P&gt;&lt;PRE&gt;$ beeline -u "jdbc:hive2://&amp;lt;hiveserver2-hostname&amp;gt;:10000/" -n &amp;lt;username&amp;gt;
&lt;/PRE&gt;</description>
    <pubDate>Tue, 11 Jul 2017 10:03:46 GMT</pubDate>
    <dc:creator>dkozlowski</dc:creator>
    <dc:date>2017-07-11T10:03:46Z</dc:date>
  </channel>
</rss>

