<?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: unable to connect thrift server using beeline in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280803#M208973</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70426"&gt;@soumya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following from my previous responses&amp;nbsp; can you get the connection string like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ambari UI --&amp;gt; Hive --&amp;gt; Summary (Tab) --&amp;gt; "HiveServer2 JDBC URL" --&amp;gt; Click on the at the right side of the URL to copy the URL&lt;/STRONG&gt; and then try this URL with beeline once&lt;BR /&gt;At the prompt add beeline to the copied link above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="connect1a.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24968iCF144897ABC88AC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="connect1a.PNG" alt="connect1a.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;# beeline jdbc:hive2://osaka.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;BR /&gt;SLF4J: Found binding in [jar:file:/usr/hdp/3.1.0.0-78/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: Found binding in [jar:file:/usr/hdp/3.1.0.0-78/hadoop/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.&lt;BR /&gt;SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]&lt;BR /&gt;Connecting to &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;jdbc:hive2://osaka.com:2181/default;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Enter username for jdbc:hive2://osaka.com:2181/default: hive&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Enter password for jdbc:hive2://osaka.com:2181/default: ****&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;19/10/19 09:40:50 [main]: INFO jdbc.HiveConnection: Connected to osaka.com:10000&lt;BR /&gt;Connected to: Apache Hive (version 3.1.0.3.1.0.0-78)&lt;BR /&gt;Driver: Hive JDBC (version 3.1.0.3.1.0.0-78)&lt;BR /&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;BR /&gt;Beeline version 3.1.0.3.1.0.0-78 by Apache Hive&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;0: jdbc:hive2://osaka.com:2181/default&amp;gt; show tables;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;INFO : Compiling command(queryId=hive_20191019094333_357978cc-2f7d-433f-badc-6d8f20178361): show tables&lt;BR /&gt;..........&lt;BR /&gt;INFO : Completed executing command(queryId=hive_20191019094333_357978cc-2f7d-433f-badc-6d8f20178361); Time taken: 11.262 seconds&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;INFO : OK&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;+-------------+&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;| tab_name |&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;+-------------+&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;| hello_acid |&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;+-------------+&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;1 row selected (77.143 seconds)&lt;BR /&gt;0: jdbc:hive2://osaka.com:2181/default&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="connect2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24970iAC8DEDAB05512876/image-size/medium?v=v2&amp;amp;px=400" role="button" title="connect2.PNG" alt="connect2.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="connect3.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24971iC067FC163DC32A58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="connect3.PNG" alt="connect3.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Specifying a database in the connect string&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;# beeline -u "jdbc:hive2://osaka.com:2181/sparktest;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2"&lt;/FONT&gt;&lt;BR /&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;BR /&gt;...........&lt;BR /&gt;Connecting to jdbc:hive2://osaka.com:2181/sparktest;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;BR /&gt;19/10/19 10:01:21 [main]: INFO jdbc.HiveConnection: Connected to osaka.com:10000&lt;BR /&gt;Connected to: Apache Hive (version 3.1.0.3.1.0.0-78)&lt;BR /&gt;Driver: Hive JDBC (version 3.1.0.3.1.0.0-78)&lt;BR /&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;BR /&gt;Beeline version 3.1.0.3.1.0.0-78 by Apache Hive&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;0: jdbc:hive2://osaka.com:2181/sparktest&amp;gt; show tables;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Methods of Hs2 connections&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HiveServer2 and a JDBC client (such as Beeline) as the primary way to access Hive. It uses SQL standard-based authorization or Ranger-based authorization. However if&amp;nbsp; wish to access Hive data from other applications, such as Pig. For these use cases, use the Hive CLI and storage-based authorization.&lt;/SPAN&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;HS2 using Binary Transport Mode&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;beeline jdbc:hive2://&amp;lt;ZOOKEEPER QUORUM&amp;gt;/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2HiveServer2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;HS2 using HTTP Transport Mode&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;beeline jdbc:hive2://&amp;lt;ZOOKEEPER QUORUM&amp;gt;/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;transportMode=http;httpPath=cliservice&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;HS2 Interactive note zooKeeperNamespace=hiveserver2-hive2 in the below URL&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;beeline jdbc:hive2://&amp;lt;ZOOKEEPER QUORUM&amp;gt;/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-hive2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;HS2 Scripts using Beeline, you can make use of -f option in Beeline.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;beeline -u "jdbc:hive2://master01:2181,master02:2181,master03:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2" -f file.hql&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The above methods should succeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 19 Oct 2019 08:51:28 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2019-10-19T08:51:28Z</dc:date>
    <item>
      <title>unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280562#M208925</link>
      <description>&lt;P&gt;when am connecting to thrift server using beeline it's showing&amp;nbsp; below error&lt;/P&gt;
&lt;P&gt;Beeline version 1.2.1.spark2 by Apache Hive&lt;BR /&gt;beeline&amp;gt; !connect jdbc:hive2://host:10000&lt;BR /&gt;Connecting to jdbc:hive2://host:10000&lt;BR /&gt;Enter username for jdbc:hive2://host:10000: admin-sbarik2&lt;BR /&gt;Enter password for jdbc:hive2://host:10000: ********&lt;BR /&gt;org/apache/hive/service/cli/thrift/TCLIService$Iface&lt;BR /&gt;0: jdbc:hive2://host:10000 (closed)&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it's automatically closed.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 10:47:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280562#M208925</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-18T10:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280770#M208951</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70426"&gt;@soumya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried the below method?&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#FF6600"&gt;$ beeline -u jdbc:hive2://osaka.com:10000 -n hive -p hive&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;.........&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#FF6600"&gt;Connecting to jdbc:hive2://osaka.com:10000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#FF6600"&gt;Connected to: Apache Hive (version 3.1.0.3.1.0.0-78)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;Driver: Hive JDBC (version 3.1.0.3.1.0.0-78)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;Beeline version 3.1.0.3.1.0.0-78 by Apache Hive&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#FF6600"&gt;0: jdbc:hive2://osaka.com:10000&amp;gt; show databases;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;INFO : Compiling command(queryId=hive_20191018215530_3f94b050-d36c-46c9-9582-40a0fef9b6e2): show databases&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;...........&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;INFO : Completed executing command(queryId=hive_20191018215530_3f94b050-d36c-46c9-9582-40a0fef9b6e2); Time taken: 0.037 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;INFO : OK&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;+---------------------+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#FF6600"&gt;| database_name |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#FF6600"&gt;+---------------------+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#FF6600"&gt;| default |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#FF6600"&gt;| information_schema |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#FF6600"&gt;| sparktest |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#FF6600"&gt;| sys |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;+---------------------+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;4 rows selected (0.392 seconds)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#000000"&gt;0: jdbc:hive2://osaka.com:10000&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 20:04:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280770#M208951</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-10-18T20:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280784#M208962</link>
      <description>&lt;P&gt;no luck same issue it's automatically closed&lt;/P&gt;&lt;P&gt;Connecting to beeline&lt;BR /&gt;-n&lt;BR /&gt;log4j:WARN No appenders could be found for logger (org.apache.hive.beeline.SQLCompleter).&lt;BR /&gt;log4j:WARN Please initialize the log4j system properly.&lt;BR /&gt;log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.&lt;BR /&gt;0: beeline (closed)&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 05:30:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280784#M208962</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-19T05:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280803#M208973</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70426"&gt;@soumya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following from my previous responses&amp;nbsp; can you get the connection string like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ambari UI --&amp;gt; Hive --&amp;gt; Summary (Tab) --&amp;gt; "HiveServer2 JDBC URL" --&amp;gt; Click on the at the right side of the URL to copy the URL&lt;/STRONG&gt; and then try this URL with beeline once&lt;BR /&gt;At the prompt add beeline to the copied link above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="connect1a.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24968iCF144897ABC88AC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="connect1a.PNG" alt="connect1a.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;# beeline jdbc:hive2://osaka.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;BR /&gt;SLF4J: Found binding in [jar:file:/usr/hdp/3.1.0.0-78/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: Found binding in [jar:file:/usr/hdp/3.1.0.0-78/hadoop/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.&lt;BR /&gt;SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]&lt;BR /&gt;Connecting to &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;jdbc:hive2://osaka.com:2181/default;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Enter username for jdbc:hive2://osaka.com:2181/default: hive&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Enter password for jdbc:hive2://osaka.com:2181/default: ****&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;19/10/19 09:40:50 [main]: INFO jdbc.HiveConnection: Connected to osaka.com:10000&lt;BR /&gt;Connected to: Apache Hive (version 3.1.0.3.1.0.0-78)&lt;BR /&gt;Driver: Hive JDBC (version 3.1.0.3.1.0.0-78)&lt;BR /&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;BR /&gt;Beeline version 3.1.0.3.1.0.0-78 by Apache Hive&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;0: jdbc:hive2://osaka.com:2181/default&amp;gt; show tables;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;INFO : Compiling command(queryId=hive_20191019094333_357978cc-2f7d-433f-badc-6d8f20178361): show tables&lt;BR /&gt;..........&lt;BR /&gt;INFO : Completed executing command(queryId=hive_20191019094333_357978cc-2f7d-433f-badc-6d8f20178361); Time taken: 11.262 seconds&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;INFO : OK&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;+-------------+&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;| tab_name |&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;+-------------+&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;| hello_acid |&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;+-------------+&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;1 row selected (77.143 seconds)&lt;BR /&gt;0: jdbc:hive2://osaka.com:2181/default&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="connect2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24970iAC8DEDAB05512876/image-size/medium?v=v2&amp;amp;px=400" role="button" title="connect2.PNG" alt="connect2.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="connect3.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24971iC067FC163DC32A58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="connect3.PNG" alt="connect3.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Specifying a database in the connect string&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;# beeline -u "jdbc:hive2://osaka.com:2181/sparktest;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2"&lt;/FONT&gt;&lt;BR /&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;BR /&gt;...........&lt;BR /&gt;Connecting to jdbc:hive2://osaka.com:2181/sparktest;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;BR /&gt;19/10/19 10:01:21 [main]: INFO jdbc.HiveConnection: Connected to osaka.com:10000&lt;BR /&gt;Connected to: Apache Hive (version 3.1.0.3.1.0.0-78)&lt;BR /&gt;Driver: Hive JDBC (version 3.1.0.3.1.0.0-78)&lt;BR /&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;BR /&gt;Beeline version 3.1.0.3.1.0.0-78 by Apache Hive&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;0: jdbc:hive2://osaka.com:2181/sparktest&amp;gt; show tables;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Methods of Hs2 connections&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HiveServer2 and a JDBC client (such as Beeline) as the primary way to access Hive. It uses SQL standard-based authorization or Ranger-based authorization. However if&amp;nbsp; wish to access Hive data from other applications, such as Pig. For these use cases, use the Hive CLI and storage-based authorization.&lt;/SPAN&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;HS2 using Binary Transport Mode&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;beeline jdbc:hive2://&amp;lt;ZOOKEEPER QUORUM&amp;gt;/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2HiveServer2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;HS2 using HTTP Transport Mode&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;beeline jdbc:hive2://&amp;lt;ZOOKEEPER QUORUM&amp;gt;/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;transportMode=http;httpPath=cliservice&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;HS2 Interactive note zooKeeperNamespace=hiveserver2-hive2 in the below URL&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;beeline jdbc:hive2://&amp;lt;ZOOKEEPER QUORUM&amp;gt;/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-hive2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;HS2 Scripts using Beeline, you can make use of -f option in Beeline.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;beeline -u "jdbc:hive2://master01:2181,master02:2181,master03:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2" -f file.hql&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The above methods should succeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 08:51:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280803#M208973</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-10-19T08:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280815#M208978</link>
      <description>&lt;P&gt;can you share before i connecting to spark thrift server with beeline what configuration need to check ...???&lt;/P&gt;&lt;P&gt;what i&amp;nbsp; think something wrong with configuration file....&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 12:52:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280815#M208978</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-19T12:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280816#M208979</link>
      <description>&lt;DIV class="lia-quilt-row lia-quilt-row-main"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-main-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;facing below error&lt;/P&gt;&lt;P&gt;#-&amp;gt; ./bin/beeline&lt;BR /&gt;Beeline version 1.2.1.spark2 by Apache Hive&lt;BR /&gt;beeline&amp;gt; !connect jdbc:hive2://host:10001&lt;BR /&gt;Connecting to jdbc:hive2://host:10001&lt;BR /&gt;Enter username for jdbc:hive2://host:10001: SBarik2&lt;BR /&gt;Enter password for jdbc:hive2://host:10001: ********&lt;BR /&gt;org/apache/hive/service/cli/thrift/TCLIService$Iface&lt;BR /&gt;0: jdbc:hive2://host:10001 (closed)&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you share what configuration need to check&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 19 Oct 2019 13:01:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280816#M208979</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-19T13:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280818#M208981</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70426"&gt;@soumya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share the output od the below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ambari UI --&amp;gt; Hive --&amp;gt; Summary (Tab) --&amp;gt; "HiveServer2 JDBC URL" --&amp;gt; Click on the at the right side of the URL to copy the URL&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I see you using port 10001 ???&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="connect4.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24972iB40B8AB757F648B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="connect4.PNG" alt="connect4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="connect4a.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24973iB575A3A2BA836FEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="connect4a.PNG" alt="connect4a.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;What is the output from your Linux console of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ hostname&amp;nbsp; -f&lt;/P&gt;&lt;P&gt;You should append that derived&amp;nbsp; value i.e&amp;nbsp;&lt;STRONG&gt;soumya.com&lt;/STRONG&gt; to the connect string&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 18:22:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280818#M208981</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-10-19T18:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280827#M208988</link>
      <description>&lt;P&gt;please suggest facing below issue&lt;/P&gt;&lt;P&gt;Beeline version 1.2.1.spark2 by Apache Hive&lt;BR /&gt;beeline&amp;gt; !connect jdbc:hive2//awsdev2185:10000&lt;BR /&gt;scan complete in 0ms&lt;BR /&gt;19/10/20 04:49:36 ERROR ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: minlog-1.2.jar (No such file or directory)&lt;BR /&gt;19/10/20 04:49:37 ERROR ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: objenesis-1.2.jar (No such file or directory)&lt;BR /&gt;19/10/20 04:49:37 ERROR ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: reflectasm-1.07-shaded.jar (No such file or directory)&lt;BR /&gt;scan complete in 1177ms&lt;BR /&gt;No known driver to handle "jdbc:hive2//awsdev2185:10000"&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2019 08:53:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280827#M208988</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-20T08:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280828#M208989</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70426"&gt;@soumya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I ask you to share output there is a valid reason for that but when you continue to send me errors I can figure out what could be the issue because the errors are different each time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In all my previous posting I requested outputs or screenshots !!&lt;/P&gt;&lt;P&gt;Like the&lt;STRONG&gt; Hs2 connect string from the Ambari UI&lt;/STRONG&gt;, &lt;STRONG&gt;/etc/hosts&lt;/STRONG&gt; and output of &lt;STRONG&gt;$ hostname -f,&lt;/STRONG&gt; etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the backend database you are using for hive?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2019 09:22:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280828#M208989</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-10-20T09:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280829#M208990</link>
      <description>&lt;P&gt;backend database am using spark-sql&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2019 13:34:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280829#M208990</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-20T13:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280830#M208991</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70426"&gt;@soumya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Spark SQL is Spark’s interface for working with structured and semi-structured data so it is not what I asked Hive Metastore uses&amp;nbsp; Mysql; MariaDB, SQL Server, Oracle etc for its metastore !!&lt;BR /&gt;If you can't provide infor requested it will be difficult to help you out!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2019 13:53:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280830#M208991</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-10-20T13:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280863#M209015</link>
      <description>&lt;P&gt;when am giving below connect ion string showing below error&lt;/P&gt;&lt;P&gt;beeline&amp;gt; !connect jdbc:hive2//awshv2200:10000&lt;BR /&gt;scan complete in 0ms&lt;BR /&gt;19/10/21 03:40:04 ERROR ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: minlog-1.2.jar (No such file or directory)&lt;BR /&gt;19/10/21 03:40:04 ERROR ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: objenesis-1.2.jar (No such file or directory)&lt;BR /&gt;19/10/21 03:40:04 ERROR ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: reflectasm-1.07-shaded.jar (No such file or directory)&lt;BR /&gt;scan complete in 553ms&lt;BR /&gt;No known driver to handle "jdbc:hive2//awshv2200:10000"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please note as my configuration in hive-site.xml the transport mode is binary&lt;/P&gt;&lt;P&gt;can you share me the the connection string when transport mode is binary&amp;nbsp;&lt;/P&gt;&lt;P&gt;am using same same host i;e&amp;nbsp;&lt;/P&gt;&lt;P&gt;am currently login with host awshv2200 and my spark thrift server host is awshv2200 and port no-10000&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 07:50:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280863#M209015</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-21T07:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280872#M209018</link>
      <description>&lt;P&gt;please find the configuration&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;javax.jdo.option.ConnectionDriverName&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;oracle.jdbc.OracleDriver&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;javax.jdo.option.ConnectionURL&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;jdbc:oracle:thin:@DFJHNNJHJUUI:4355:KKJH0033&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;JDBC connect string for a JDBC metastore&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please share your suggestion what need to check and configuration&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 08:05:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280872#M209018</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-21T08:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280924#M209058</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70426"&gt;@soumya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your property files, your backend database is &lt;STRONG&gt;Oracle&lt;/STRONG&gt;! There is something very weird about the information you are sharing with members that's why we can't resolve your problem?&lt;/P&gt;&lt;P&gt;Can you get the value of your hive-site.xml "&lt;STRONG&gt;javax.jdo.option.ConnectionURL&lt;/STRONG&gt;" that should confirm oracle&lt;/P&gt;&lt;P&gt;All along you claimed you were using MySQL database for your metastore? But the connect string to an oracle database is different,here is the syntax for connecting&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;jdbc:oracle:thin:@localhost/remote_host:port:db_name&lt;/STRONG&gt;"&amp;nbsp; so according to your shared&amp;nbsp; hive-site.xml&amp;nbsp; correct connect is&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;&lt;STRONG&gt;jdbc:oracle:thin:@DFJHNNJHJUUI:4355:KKJH0033&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"jdbc:oracle:thin:@&amp;lt;hoostname[&lt;STRONG&gt;DFJHNNJHJUUI&lt;/STRONG&gt;]&amp;gt;:port[&lt;STRONG&gt;4355&lt;/STRONG&gt;]:db_name[&lt;STRONG&gt;KKJH0033&lt;/STRONG&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Else connecting&amp;nbsp;&amp;nbsp;Direct - Binary Transport Mode example below&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;beeline -n hive -p hive -u "jdbc:hive2://osaka.com:10000/sparktest"&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Ranger_using_Mysql_db" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24987i9EA8BC3ED5CB7068/image-size/medium?v=v2&amp;amp;px=400" role="button" title="004.PNG" alt="Ranger_using_Mysql_db" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Ranger_using_Mysql_db&lt;/span&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Hs2 mode ports" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24985iBEC42EE406703C3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="001.PNG" alt="Hs2 mode ports" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Hs2 mode ports&lt;/span&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Connecting to my Sparktest database" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24988i938098BD58D2DCDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="002.PNG" alt="Connecting to my Sparktest database" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Connecting to my Sparktest database&lt;/span&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Hive_using_Mysql_metastore" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24986iE11CE2FFE3161310/image-size/medium?v=v2&amp;amp;px=400" role="button" title="003.PNG" alt="Hive_using_Mysql_metastore" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Hive_using_Mysql_metastore&lt;/span&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please clarify&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:49:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280924#M209058</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-10-21T19:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280977#M209081</link>
      <description>&lt;P&gt;Thanks for your support but no luck facing same issue connection closed automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you help me for an important shell script&lt;/P&gt;&lt;P&gt;write a shell script to connect spark thrift server using beeline...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;request you please share the syntax .....&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 07:41:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280977#M209081</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-22T07:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280982#M209084</link>
      <description>&lt;P&gt;As per you previous conversation&lt;/P&gt;&lt;P&gt;All along you claimed you were using MySQL database for your metastore? But the connect string to an oracle database is different,here is the syntax for connecting&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;jdbc:oracle:thin:@localhost/remote_host:port:db_name&lt;/STRONG&gt;"&amp;nbsp; so according to your shared&amp;nbsp; hive-site.xml&amp;nbsp; correct connect is&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;&lt;STRONG&gt;jdbc:oracle:thin:@DFJHNNJHJUUI:4355:KKJH0033&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"jdbc:oracle:thin:@&amp;lt;hoostname[&lt;STRONG&gt;DFJHNNJHJUUI&lt;/STRONG&gt;]&amp;gt;:port[&lt;STRONG&gt;4355&lt;/STRONG&gt;]:db_name[&lt;STRONG&gt;KKJH0033&lt;/STRONG&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Else connecting&amp;nbsp;&amp;nbsp;Direct - Binary Transport Mode example below&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;beeline -n hive -p hive -u "jdbc:hive2://osaka.com:10000/sparktest"&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;-----------------------------------------------------------------------------------------------------------------------------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;as per my current configuration file&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;configuration&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- hnj ThriftServer authentication ldap --&amp;gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hive.server2.authentication&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;LDAP&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;spark.sql.hive.thriftServer.adf.authenticationProvider&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;com.dmz.adf.analyze.spark2adf.thriftserver.auth.hnzLdapAuthenticationProvider&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;2. am using 10000 port&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. connection url is&amp;nbsp;"&lt;SPAN&gt;&lt;STRONG&gt;jdbc:oracle:thin:@DFJHNNJHJUUI:4355:KKJH0033&lt;/STRONG&gt;" and also i have user id and password&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. Transport mode is binary&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. my thrift srver host is (awsdev3344 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;am using awsdev3344 server for connection to thrift server (awsdev3344 ) using beeline&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;am using below connection string&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Beeline version 1.2.1.spark2 by Apache Hive&lt;BR /&gt;beeline&amp;gt;&lt;SPAN&gt;!connect jdbc:hive2://awsdev3344 :10000&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but&amp;nbsp; connection is closed automatically.&lt;/P&gt;&lt;P&gt;i already share you the connection details please share the connection string transport mode is binary so that i can process&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 08:06:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/280982#M209084</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-22T08:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/281117#M209175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70426"&gt;@soumya&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems there is some confusion here.&lt;/P&gt;&lt;P&gt;As per my understanding, you are trying to connect to Spark Thrift Server via beeline. Please correct me, if I am wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You you to be able to connect to Spark Thrift server via beeline, you need to make sure you are providing the correct hostname and portnumber in the JDBC URL you are using in the beeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;jdbc:hive2://host:portnumber/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here, the "host" will be the Hostname of the server where Spark Thriftserver is running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let us say it is running on &lt;STRONG&gt;abc.soumya.com&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The default portnumber for Spark Thriftserver is &lt;STRONG&gt;10000&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But this portnumber can be configured to something else as well. You need to find the correct portnumber.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thus, you connect string would look like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;jdbc:hive2://&lt;STRONG&gt;abc.soumya.com&lt;/STRONG&gt;:&lt;STRONG&gt;10000&lt;/STRONG&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can refer the below link for more information on this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://spark.apache.org/docs/latest/sql-distributed-sql-engine.html" target="_blank"&gt;https://spark.apache.org/docs/latest/sql-distributed-sql-engine.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 12:01:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/281117#M209175</guid>
      <dc:creator>rohitmalhotra</dc:creator>
      <dc:date>2019-10-23T12:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/281129#M209186</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANKS FOR THE INFO.&lt;/P&gt;&lt;P&gt;ISSUE RESOLVE .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 14:02:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/281129#M209186</guid>
      <dc:creator>soumya</dc:creator>
      <dc:date>2019-10-23T14:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/281141#M209195</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70426"&gt;@soumya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good to hear that can you share what solution worked for you this way other who encounter the same problem can quickly resolve it.&lt;/P&gt;&lt;P&gt;Thats what we csll community contribution&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy hadooping&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 15:27:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/281141#M209195</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-10-23T15:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: unable to connect thrift server using beeline</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/281193#M209238</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70426"&gt;@soumya&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please confirm exactly how the issue was resolved.&lt;/P&gt;&lt;P&gt;Please do accept the answer which helped you.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 06:34:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-connect-thrift-server-using-beeline/m-p/281193#M209238</guid>
      <dc:creator>rohitmalhotra</dc:creator>
      <dc:date>2019-10-24T06:34:51Z</dc:date>
    </item>
  </channel>
</rss>

