<?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: How many users connected to HiveServer2 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-many-users-connected-to-HiveServer2/m-p/322372#M228765</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/91078"&gt;@Nil_kharat&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: Can anyone tell me how to check how many users are connected to the hive server2?&lt;/P&gt;&lt;P&gt;Answer: Login to the server where hiveserver2 is running and run the below command to figure out the number of connections to the HS2&lt;/P&gt;&lt;P&gt;# netstat -ntpl | grep 10000&lt;BR /&gt;In the above command 10000 is the HS2 port number&lt;/P&gt;&lt;P&gt;You can also check this from Cloudera manager&lt;/P&gt;&lt;P&gt;CM &amp;gt; Hive_on_Tez &amp;gt; Instances &amp;gt; HiveServer2 &amp;gt; Open Connections&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And along with can we see which user is connected?&lt;/P&gt;&lt;P&gt;If you enable Hiveserver2 UI then under Active Sessions you can see which user connected from which IP.&lt;BR /&gt;Please check the below link.&lt;BR /&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-WebUIforHiveServer2" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-WebUIforHiveServer2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are happy with the answer, mark it Accept as solution&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 05:33:58 GMT</pubDate>
    <dc:creator>Shifu</dc:creator>
    <dc:date>2021-08-11T05:33:58Z</dc:date>
    <item>
      <title>How many users connected to HiveServer2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-many-users-connected-to-HiveServer2/m-p/322352#M228759</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;Can anyone tell me how to check how many users are connected to the hive server2?&lt;/P&gt;&lt;P&gt;And&amp;nbsp; along with can we see which user is connected ?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 08:59:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-many-users-connected-to-HiveServer2/m-p/322352#M228759</guid>
      <dc:creator>Nil_kharat</dc:creator>
      <dc:date>2026-04-21T08:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How many users connected to HiveServer2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-many-users-connected-to-HiveServer2/m-p/322372#M228765</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/91078"&gt;@Nil_kharat&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: Can anyone tell me how to check how many users are connected to the hive server2?&lt;/P&gt;&lt;P&gt;Answer: Login to the server where hiveserver2 is running and run the below command to figure out the number of connections to the HS2&lt;/P&gt;&lt;P&gt;# netstat -ntpl | grep 10000&lt;BR /&gt;In the above command 10000 is the HS2 port number&lt;/P&gt;&lt;P&gt;You can also check this from Cloudera manager&lt;/P&gt;&lt;P&gt;CM &amp;gt; Hive_on_Tez &amp;gt; Instances &amp;gt; HiveServer2 &amp;gt; Open Connections&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And along with can we see which user is connected?&lt;/P&gt;&lt;P&gt;If you enable Hiveserver2 UI then under Active Sessions you can see which user connected from which IP.&lt;BR /&gt;Please check the below link.&lt;BR /&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-WebUIforHiveServer2" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-WebUIforHiveServer2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are happy with the answer, mark it Accept as solution&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 05:33:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-many-users-connected-to-HiveServer2/m-p/322372#M228765</guid>
      <dc:creator>Shifu</dc:creator>
      <dc:date>2021-08-11T05:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: How many users connected to HiveServer2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-many-users-connected-to-HiveServer2/m-p/322530#M228835</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/76164"&gt;@Shifu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can we have these command also&lt;/P&gt;&lt;P&gt;lsof -i:10000 | grep 'ESTABLISHED' | wc -l&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 15:02:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-many-users-connected-to-HiveServer2/m-p/322530#M228835</guid>
      <dc:creator>Nil_kharat</dc:creator>
      <dc:date>2021-08-13T15:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How many users connected to HiveServer2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-many-users-connected-to-HiveServer2/m-p/322583#M228863</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/91078"&gt;@Nil_kharat&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you can also use the particular lsof command as well to figure out the number of established connections to the particular port.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 02:41:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-many-users-connected-to-HiveServer2/m-p/322583#M228863</guid>
      <dc:creator>Shifu</dc:creator>
      <dc:date>2021-08-15T02:41:16Z</dc:date>
    </item>
  </channel>
</rss>

