<?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 Fails to connect to Hive with Auto-TLS enabled in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278811#M208251</link>
    <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/26175"&gt;@Mekaam&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you please add quotes around the JDBC connection string? So like below:&lt;BR /&gt;&lt;BR /&gt;beeline -u 'jdbc:hive2://slave1:10000;ssl=true;sslTrustStore=/var/run/cloudera-scm-agent/process/72-hive-HIVESERVER2/cm-auto-host_keystore.jks;trustStorePassword=yeap4IhJzRvK5gBGVMeTahoL21BNmBF2TSi46pbQTP6'&lt;BR /&gt;&lt;BR /&gt;I believe without quotes it will cause issues.&lt;BR /&gt;&lt;BR /&gt;If still not working, check HS2 log to see what it complains on the server side.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric</description>
    <pubDate>Fri, 04 Oct 2019 07:04:28 GMT</pubDate>
    <dc:creator>EricL</dc:creator>
    <dc:date>2019-10-04T07:04:28Z</dc:date>
    <item>
      <title>Beeline Fails to connect to Hive with Auto-TLS enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278778#M208230</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;we setup Cloudera cluster on&amp;nbsp; to verify the performance&lt;/P&gt;&lt;P&gt;Cloudera was installed with Auto-TLS enabled and we are facing issues to connect to hive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[root@slave1 agent-cert]#&amp;nbsp; beeline -u jdbc:hive2://slave1:10000;ssl=true;sslTrustStore=/var/run/cloudera-scm-agent/process/72-hive-HIVESERVER2/cm-auto-host_keystore.jks;trustStorePassword=yeap4IhJzRvK5gBGVMeTahoL21BNmBF2TSi46pbQTP6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WARNING: Use "yarn jar" to launch YARN applications.&lt;/P&gt;&lt;P&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;/P&gt;&lt;P&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/log4j-slf4j-impl-2.8.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/P&gt;&lt;P&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]&lt;/P&gt;&lt;P&gt;Connecting to jdbc:hive2://slave1:10000&lt;/P&gt;&lt;P&gt;19/10/03 18:54:16 [main]: WARN jdbc.HiveConnection: Failed to connect to slave1:10000&lt;/P&gt;&lt;P&gt;Unknown HS2 problem when communicating with Thrift server.&lt;/P&gt;&lt;P&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://slave1:10000: Invalid status 21 (state=08S01,code=0)&lt;/P&gt;&lt;P&gt;Beeline version 2.1.1-cdh6.2.1 by Apache Hive&lt;/P&gt;&lt;P&gt;beeline&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also standard format fails:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;[root@slave1 agent-cert]# beeline -u jdbc:hive2://slave1:10000&lt;/STRONG&gt;&lt;BR /&gt;WARNING: Use "yarn jar" to launch YARN applications.&lt;BR /&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;BR /&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/log4j-slf4j-impl-2.8.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/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 jdbc:hive2://slave1:10000&lt;BR /&gt;19/10/03 19:07:50 [main]: WARN jdbc.HiveConnection: Failed to connect to slave1:10000&lt;BR /&gt;Unknown HS2 problem when communicating with Thrift server.&lt;BR /&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://slave1:10000: Invalid status 21 (state=08S01,code=0)&lt;BR /&gt;Beeline version 2.1.1-cdh6.2.1 by Apache Hive&lt;BR /&gt;beeline&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we were not sure about the trustStorePassword so we used what is included in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@slave1 agent-cert]# cat /var/lib/cloudera-scm-agent/agent-cert/cm-auto-host_key.pw&lt;/P&gt;&lt;P&gt;yeap4IhJzRvK5gBGVMeTahoL21BNmBF2TSi46pbQTP6&lt;/P&gt;&lt;P&gt;[root@slave1 agent-cert]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We were try to connect following: &lt;A href="https://docs.cloudera.com/documentation/enterprise/5-6-x/topics/sg_hive_encryption.html#concept_rqh_sff_cm" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/5-6-x/topics/sg_hive_encryption.html#concept_rqh_sff_cm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But not sure what is need to be fixed , appreciate your help please&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 19:10:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278778#M208230</guid>
      <dc:creator>Mekaam</dc:creator>
      <dc:date>2019-10-03T19:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline Fails to connect to Hive with Auto-TLS enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278811#M208251</link>
      <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/26175"&gt;@Mekaam&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you please add quotes around the JDBC connection string? So like below:&lt;BR /&gt;&lt;BR /&gt;beeline -u 'jdbc:hive2://slave1:10000;ssl=true;sslTrustStore=/var/run/cloudera-scm-agent/process/72-hive-HIVESERVER2/cm-auto-host_keystore.jks;trustStorePassword=yeap4IhJzRvK5gBGVMeTahoL21BNmBF2TSi46pbQTP6'&lt;BR /&gt;&lt;BR /&gt;I believe without quotes it will cause issues.&lt;BR /&gt;&lt;BR /&gt;If still not working, check HS2 log to see what it complains on the server side.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric</description>
      <pubDate>Fri, 04 Oct 2019 07:04:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278811#M208251</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-10-04T07:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline Fails to connect to Hive with Auto-TLS enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278813#M208253</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/10115"&gt;@EricL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;when adding the single quote i got a different errors&lt;/P&gt;&lt;P&gt;[root@slave1 ~]# beeline -u 'jdbc:hive2://slave1:10000;ssl=true;sslTrustStore=/var/run/cloudera-scm-agent/process/72-hive-HIVESERVER2/cm-auto-host_keystore.jks;trustStorePassword=yeap4IhJzRvK5gBGVMeTahoL21BNmBF2TSi46pbQTP6'&lt;BR /&gt;WARNING: Use "yarn jar" to launch YARN applications.&lt;BR /&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;BR /&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/log4j-slf4j-impl-2.8.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/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 jdbc:hive2://slave1:10000;ssl=true;sslTrustStore=/var/run/cloudera-scm-agent/process/72-hive-HIVESERVER2/cm-auto-host_keystore.jks;trustStorePassword=yeap4IhJzRvK5gBGVMeTahoL21BNmBF2TSi46pbQTP6&lt;BR /&gt;&lt;STRONG&gt;Error: Bad URL format. Hostname not found in authority part of the url: slave1:10000;ssl=true;sslTrustStore=. Are you missing a '/' after the hostname ? (state=,code=0)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Beeline version 2.1.1-cdh6.2.1 by Apache Hive&lt;/STRONG&gt;&lt;BR /&gt;beeline&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i added the / , i got different error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@slave1 ~]# beeline -u 'jdbc:hive2://slave1/:10000;ssl=true;sslTrustStore=/var/run/cloudera-scm-agent/process/72-hive-HIVESERVER2/cm-auto-host_keystore.jks;trustStorePassword=yeap4IhJzRvK5gBGVMeTahoL21BNmBF2TSi46pbQTP6'&lt;BR /&gt;WARNING: Use "yarn jar" to launch YARN applications.&lt;BR /&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;BR /&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/log4j-slf4j-impl-2.8.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/jars/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 jdbc:hive2://slave1/:10000;ssl=true;sslTrustStore=/var/run/cloudera-scm-agent/process/72-hive-HIVESERVER2/cm-auto-host_keystore.jks;trustStorePassword=yeap4IhJzRvK5gBGVMeTahoL21BNmBF2TSi46pbQTP6&lt;BR /&gt;19/10/04 07:48:03 [main]: WARN jdbc.HiveConnection: Failed to connect to slave1:-1&lt;BR /&gt;Unknown HS2 problem when communicating with Thrift server.&lt;BR /&gt;Error: Could not open client transport with JDBC Uri: &lt;STRONG&gt;jdbc:hive2://slave1:-1/:10000;ssl=true;sslTrustStore=/var/run/cloudera-scm-agent/process/72-hive-HIVESERVER2/cm-auto-host_keystore.jks;trustStorePassword=yeap4IhJzRvK5gBGVMeTahoL21BNmBF2TSi46pbQTP6: Error creating the transport (state=08S01,code=0)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Beeline version 2.1.1-cdh6.2.1 by Apache Hive&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;beeline&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i do not have domain name in this setup&lt;/P&gt;&lt;P&gt;[root@slave1 ~]# hostname&lt;BR /&gt;slave1&lt;BR /&gt;[root@slave1 ~]# hostname -a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@slave1 ~]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 07:51:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278813#M208253</guid>
      <dc:creator>Mekaam</dc:creator>
      <dc:date>2019-10-04T07:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline Fails to connect to Hive with Auto-TLS enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278826#M208263</link>
      <description>Hmm, you missed the database name in the connection string, try below:&lt;BR /&gt;&lt;BR /&gt;beeline -u 'jdbc:hive2://slave1:10000/default;ssl=true;sslTrustStore=/var/run/cloudera-scm-agent/process/72-hive-HIVESERVER2/cm-auto-host_keystore.jks;trustStorePassword=yeap4IhJzRvK5gBGVMeTahoL21BNmBF2TSi46pbQTP6'&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric</description>
      <pubDate>Fri, 04 Oct 2019 11:02:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278826#M208263</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-10-04T11:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline Fails to connect to Hive with Auto-TLS enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278875#M208291</link>
      <description>&lt;P&gt;thanks Eric, this fixed the issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2019 00:34:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278875#M208291</guid>
      <dc:creator>Mekaam</dc:creator>
      <dc:date>2019-10-05T00:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline Fails to connect to Hive with Auto-TLS enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278917#M208325</link>
      <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/26175"&gt;@Mekaam&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Glad that it helped.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric</description>
      <pubDate>Sun, 06 Oct 2019 22:32:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Beeline-Fails-to-connect-to-Hive-with-Auto-TLS-enabled/m-p/278917#M208325</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-10-06T22:32:03Z</dc:date>
    </item>
  </channel>
</rss>

