<?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: Hive and Hive Server 2 are in green but couldn't connect with them even using  webUI. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-and-Hive-Server-2-are-in-green-but-couldn-t-connect/m-p/387788#M246430</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110271"&gt;@Marks_08&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Verify if any firewalls are blocking incoming connections on ports 10000 (HiveServer2) and 10002 (Thrift server). You can use tools like netstat -atup or lsof -i :10000 to check if any processes are listening on these ports.&lt;/P&gt;&lt;P&gt;If a firewall is restricting access, configure it to allow connections on these ports from the machine where you're running Beeline.&lt;/P&gt;&lt;P&gt;2. Double-check the HiveServer2 configuration files (hive-site.xml and hive-env.sh) in Cloudera Manager.&lt;BR /&gt;Ensure that the hive.server2.thrift.port property is set to 10000 in hive-site.xml.&lt;BR /&gt;Verify that the HIVESERVER2_THRIFT_BIND_HOST environment variable (if set) in hive-env.sh allows connections from your Beeline machine.&lt;BR /&gt;Make sure the HiveServer2 service has the necessary permissions to bind to these ports.&lt;/P&gt;&lt;P&gt;3. beeline -u jdbc:hive2://&amp;lt;HOST&amp;gt;:10000/;principal=hive/USR@PWD (specifies principal)&lt;/P&gt;&lt;P&gt;4. Try restarting the Hive and HiveServer2 services in Cloudera Manager. This can sometimes resolve conflicts or configuration issues.&lt;/P&gt;&lt;P&gt;5. Check the HiveServer2 log files (usually in /var/log/hive-server2/hive-server2.log) for any error messages that might indicate why it's not listening on the expected ports.&lt;/P&gt;</description>
    <pubDate>Sun, 12 May 2024 08:32:28 GMT</pubDate>
    <dc:creator>RAGHUY</dc:creator>
    <dc:date>2024-05-12T08:32:28Z</dc:date>
    <item>
      <title>Hive and Hive Server 2 are in green but couldn't connect with them even using  webUI.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-and-Hive-Server-2-are-in-green-but-couldn-t-connect/m-p/387786#M246429</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I have set up Hive and added Hive Server 2 in Cloudera Manager Trial version in order to connect with beeline.&lt;/P&gt;&lt;P&gt;Both are in green status but neither port 10000 nor 10002 are listening.&lt;/P&gt;&lt;P&gt;The message I get from beeline is &lt;STRONG&gt;"Failed to connect to &amp;lt;HOST&amp;gt;:10000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&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;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://&amp;lt;HOST&amp;gt;:10000/: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)&lt;/STRONG&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here you have the way I'm hitting beeline:&lt;BR /&gt;&lt;BR /&gt;beeline -u jdbc:hive2://&amp;lt;HOST&amp;gt;:10000/;principal=hive/USR@PWD&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;!connect jdbc:hive2://&amp;lt;HOST&amp;gt;:10000 usr pwd org.apache.hive.jdbc.HiveDriver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marks_08_0-1715474884598.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40601i96E9C74587EC6634/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marks_08_0-1715474884598.png" alt="Marks_08_0-1715474884598.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;are there some steps missing to start HS2?&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marks_08_1-1715475069366.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40602i02CB52CBCDCAEE76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marks_08_1-1715475069366.png" alt="Marks_08_1-1715475069366.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:31:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-and-Hive-Server-2-are-in-green-but-couldn-t-connect/m-p/387786#M246429</guid>
      <dc:creator>Marks_08</dc:creator>
      <dc:date>2026-04-21T06:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hive and Hive Server 2 are in green but couldn't connect with them even using  webUI.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-and-Hive-Server-2-are-in-green-but-couldn-t-connect/m-p/387788#M246430</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110271"&gt;@Marks_08&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Verify if any firewalls are blocking incoming connections on ports 10000 (HiveServer2) and 10002 (Thrift server). You can use tools like netstat -atup or lsof -i :10000 to check if any processes are listening on these ports.&lt;/P&gt;&lt;P&gt;If a firewall is restricting access, configure it to allow connections on these ports from the machine where you're running Beeline.&lt;/P&gt;&lt;P&gt;2. Double-check the HiveServer2 configuration files (hive-site.xml and hive-env.sh) in Cloudera Manager.&lt;BR /&gt;Ensure that the hive.server2.thrift.port property is set to 10000 in hive-site.xml.&lt;BR /&gt;Verify that the HIVESERVER2_THRIFT_BIND_HOST environment variable (if set) in hive-env.sh allows connections from your Beeline machine.&lt;BR /&gt;Make sure the HiveServer2 service has the necessary permissions to bind to these ports.&lt;/P&gt;&lt;P&gt;3. beeline -u jdbc:hive2://&amp;lt;HOST&amp;gt;:10000/;principal=hive/USR@PWD (specifies principal)&lt;/P&gt;&lt;P&gt;4. Try restarting the Hive and HiveServer2 services in Cloudera Manager. This can sometimes resolve conflicts or configuration issues.&lt;/P&gt;&lt;P&gt;5. Check the HiveServer2 log files (usually in /var/log/hive-server2/hive-server2.log) for any error messages that might indicate why it's not listening on the expected ports.&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 08:32:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-and-Hive-Server-2-are-in-green-but-couldn-t-connect/m-p/387788#M246430</guid>
      <dc:creator>RAGHUY</dc:creator>
      <dc:date>2024-05-12T08:32:28Z</dc:date>
    </item>
  </channel>
</rss>

