<?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 to HIVE from CLI though the hiveserver2 is up and running in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-to-HIVE-from-CLI-though-the-hiveserver2-is/m-p/378204#M243458</link>
    <description>&lt;P&gt;The error message "Unknown HS2 problem when communicating with Thrift server" typically indicates that there is an issue when trying to communicate with the Hive Server 2 (HS2) through its Thrift interface. This error can occur for various reasons, and troubleshooting it may require some investigation. Here are some common steps to help resolve this issue:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check Hive Server Status:&lt;/STRONG&gt; Ensure that the Hive Server 2 is up and running and that it's reachable from your client. You can check its status and logs to see if there are any errors or issues reported.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Network Connectivity:&lt;/STRONG&gt; Verify that there are no network-related issues that might be preventing your client from connecting to the Hive Server. Check firewalls, network configurations, and any potential network interruptions.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Hive Configuration:&lt;/STRONG&gt; Review the Hive server's configuration to ensure it's correctly set up. Pay attention to security configurations, like authentication and authorization settings.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Thrift Protocol Version:&lt;/STRONG&gt; Ensure that the Thrift protocol version used by your client matches the version supported by the Hive Server. Mismatched protocol versions can lead to communication problems.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Client-Side Issues:&lt;/STRONG&gt; Check the client application or code you are using to interact with Hive. Ensure that it's properly configured and making the correct requests to the Hive Server.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Logs and Error Messages:&lt;/STRONG&gt; Examine the logs and error messages in more detail to get specific information about what might be causing the problem. This can help pinpoint the issue.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Server Version Compatibility:&lt;/STRONG&gt; Ensure that the client and server components (Hive client and Hive Server) are compatible in terms of versions. Incompatible versions can lead to communication issues.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Authentication and Authorization:&lt;/STRONG&gt; If your Hive server is configured with authentication and authorization, ensure that you have the necessary permissions and credentials to access it.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Load and Resource Constraints:&lt;/STRONG&gt; Check if the Hive Server is under heavy load or if there are resource constraints that might be affecting its ability to respond to client requests.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Driver and Libraries:&lt;/STRONG&gt; Ensure that you are using the correct driver or libraries for your client application. If you're using JDBC or ODBC, make sure the corresponding driver is installed and configured correctly.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If you continue to face issues after performing these checks, it may be necessary to provide more specific error messages or details about your environment to diagnose the problem further.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2023 07:07:27 GMT</pubDate>
    <dc:creator>ggangadharan</dc:creator>
    <dc:date>2023-10-27T07:07:27Z</dc:date>
    <item>
      <title>Unable to connect to HIVE from CLI though the hiveserver2 is up and running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-to-HIVE-from-CLI-though-the-hiveserver2-is/m-p/343449#M233936</link>
      <description>&lt;P&gt;&lt;SPAN&gt;[root@b7-40 ~]# hive&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1000.24102687/jars/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1000.24102687/jars/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLF4J: See&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;for an explanation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WARNING: Use "yarn jar" to launch YARN applications.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1000.24102687/jars/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1000.24102687/jars/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLF4J: See&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;for an explanation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Connecting to jdbc:hive2://b7-33.lab.archivas.com:2181,b7-40.lab.archivas.com:2181,b7-6.lab.archivas.com:2181/default;password=root;serviceDiscoveryMode=zooKeeper;ssl=true;user=root;zooKeeperNamespace=hiveserver2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;22/04/29 03:00:25 [main]: WARN jdbc.HiveConnection: Failed to connect to b7-40.lab.archivas.com:10000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;22/04/29 03:00:25 [main]: ERROR jdbc.Utils: Unable to read HiveServer2 configs from ZooKeeper&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unknown HS2 problem when communicating with Thrift server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Could not open client transport for any of the Server URI's in ZooKeeper: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (state=08S01,code=0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Beeline version 3.1.3000.7.1.7.1000-141 by Apache Hive&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;beeline&amp;gt; !connect jdbc:hive2://b7-40.lab.archivas.com:10000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Connecting to jdbc:hive2://b7-40.lab.archivas.com:10000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter username for jdbc:hive2://b7-40.lab.archivas.com:10000: root&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter password for jdbc:hive2://b7-40.lab.archivas.com:10000: ********&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;22/04/29 03:01:22 [main]: WARN jdbc.HiveConnection: Failed to connect to b7-40.lab.archivas.com:10000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unknown HS2 problem when communicating with Thrift server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://b7-40.lab.archivas.com:10000: Invalid status 21 (state=08S01,code=0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;beeline&amp;gt; !connect jdbc:hive2://b7-33.lab.archivas.com:10000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Connecting to jdbc:hive2://b7-33.lab.archivas.com:10000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter username for jdbc:hive2://b7-33.lab.archivas.com:10000: root&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter password for jdbc:hive2://b7-33.lab.archivas.com:10000: ********&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;22/04/29 03:01:44 [main]: WARN jdbc.HiveConnection: Failed to connect to b7-33.lab.archivas.com:10000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could not open connection to the HS2 server. Please check the server URI and if the URI is correct, then ask the administrator to check the server status.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://b7-33.lab.archivas.com:10000: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;beeline&amp;gt; !connect jdbc:hive2://b7-40.lab.archivas.com:10002&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Connecting to jdbc:hive2://b7-40.lab.archivas.com:10002&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter username for jdbc:hive2://b7-40.lab.archivas.com:10002: root&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter password for jdbc:hive2://b7-40.lab.archivas.com:10002: ********&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;22/04/29 03:02:29 [main]: WARN jdbc.HiveConnection: Failed to connect to b7-40.lab.archivas.com:10002&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unknown HS2 problem when communicating with Thrift server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://b7-40.lab.archivas.com:10002: Invalid status 21 (state=08S01,code=0)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 10:03:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-to-HIVE-from-CLI-though-the-hiveserver2-is/m-p/343449#M233936</guid>
      <dc:creator>mmk</dc:creator>
      <dc:date>2022-05-09T10:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to HIVE from CLI though the hiveserver2 is up and running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-to-HIVE-from-CLI-though-the-hiveserver2-is/m-p/378204#M243458</link>
      <description>&lt;P&gt;The error message "Unknown HS2 problem when communicating with Thrift server" typically indicates that there is an issue when trying to communicate with the Hive Server 2 (HS2) through its Thrift interface. This error can occur for various reasons, and troubleshooting it may require some investigation. Here are some common steps to help resolve this issue:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check Hive Server Status:&lt;/STRONG&gt; Ensure that the Hive Server 2 is up and running and that it's reachable from your client. You can check its status and logs to see if there are any errors or issues reported.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Network Connectivity:&lt;/STRONG&gt; Verify that there are no network-related issues that might be preventing your client from connecting to the Hive Server. Check firewalls, network configurations, and any potential network interruptions.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Hive Configuration:&lt;/STRONG&gt; Review the Hive server's configuration to ensure it's correctly set up. Pay attention to security configurations, like authentication and authorization settings.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Thrift Protocol Version:&lt;/STRONG&gt; Ensure that the Thrift protocol version used by your client matches the version supported by the Hive Server. Mismatched protocol versions can lead to communication problems.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Client-Side Issues:&lt;/STRONG&gt; Check the client application or code you are using to interact with Hive. Ensure that it's properly configured and making the correct requests to the Hive Server.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Logs and Error Messages:&lt;/STRONG&gt; Examine the logs and error messages in more detail to get specific information about what might be causing the problem. This can help pinpoint the issue.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Server Version Compatibility:&lt;/STRONG&gt; Ensure that the client and server components (Hive client and Hive Server) are compatible in terms of versions. Incompatible versions can lead to communication issues.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Authentication and Authorization:&lt;/STRONG&gt; If your Hive server is configured with authentication and authorization, ensure that you have the necessary permissions and credentials to access it.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Load and Resource Constraints:&lt;/STRONG&gt; Check if the Hive Server is under heavy load or if there are resource constraints that might be affecting its ability to respond to client requests.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Driver and Libraries:&lt;/STRONG&gt; Ensure that you are using the correct driver or libraries for your client application. If you're using JDBC or ODBC, make sure the corresponding driver is installed and configured correctly.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If you continue to face issues after performing these checks, it may be necessary to provide more specific error messages or details about your environment to diagnose the problem further.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 07:07:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-to-HIVE-from-CLI-though-the-hiveserver2-is/m-p/378204#M243458</guid>
      <dc:creator>ggangadharan</dc:creator>
      <dc:date>2023-10-27T07:07:27Z</dc:date>
    </item>
  </channel>
</rss>

