<?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 to add another HiveServer for current metastore ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158782#M44968</link>
    <description>&lt;P&gt;In your second HS2 server go to /etc/hive/conf/conf.server , check for "localhost" properties there especially in ranger-hive-audit.xml &amp;amp; ranger-hive-security.xml
&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 01:07:40 GMT</pubDate>
    <dc:creator>Adija1</dc:creator>
    <dc:date>2017-01-25T01:07:40Z</dc:date>
    <item>
      <title>How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158772#M44958</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a cluster (HDP 2.3.2) with one edge node serving as Hive Server (running hiveserver2).
This server is used for Hive ETL processes &lt;STRONG&gt;and also&lt;/STRONG&gt; for end users that query the hive databases.
Because this server is very busy i want to add another edge server that will be dedicated for the ETL processes, thus ending up with one edge node for ETL processes (that insert data to Hive tables), and a different edge node that serves end users for querying the &lt;STRONG&gt;same hive tables&lt;/STRONG&gt;.
I've added the new host to the cluster, ran the add HiveServer2 wizard.
The Amabri shows everything is up and running.
When i login to the new edge node, run "beeline" and login to hive but i can't see the tables in my old hive metastore. It is as if these are two completely separate instances.&lt;/P&gt;&lt;P&gt;I need two different servers looking at the same Hive metastore\DB.
Any ideas how can i acomplish this ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 14:24:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158772#M44958</guid>
      <dc:creator>Adija1</dc:creator>
      <dc:date>2016-11-01T14:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158773#M44959</link>
      <description>&lt;P&gt;When i'm connected to the additional hiveserver and run beeline &amp;gt;&amp;gt;&amp;gt; show tables i get no tables&lt;/P&gt;&lt;P&gt;In the log it says:&lt;/P&gt;&lt;P&gt;2016-11-01 12:11:59,214 INFO  [HiveServer2-Background-Pool: Thread-165]: HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(372)) - ugi=adijaip=unknown-ip-addr      cmd=get_tables: db=default pat=.*
2016-11-01 12:11:59,229 WARN  [HiveServer2-Background-Pool: Thread-165]: security.UserGroupInformation (UserGroupInformation.java:getGroupNames(1521)) - No groups available for user adija
2016-11-01 12:11:59,230 ERROR [HiveServer2-Background-Pool: Thread-165]: authorizer.RangerHiveAuthorizer (RangerHiveAuthorizer.java:filterListCmdObjects(430)) - &lt;STRONG&gt;filterListCmdObjects: Internal error: null&lt;/STRONG&gt; RangerAccessResult object received back from isAccessAllowed()!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 23:28:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158773#M44959</guid>
      <dc:creator>Adija1</dc:creator>
      <dc:date>2016-11-01T23:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158774#M44960</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2591/adija-1.html" nodeid="2591"&gt;@Adi Jabkowsky&lt;/A&gt;&lt;P&gt;Take a look on the error logs...&lt;/P&gt;&lt;P&gt;ERROR [HiveServer2-Background-Pool: Thread-165]: authorizer.RangerHiveAuthorizer (RangerHiveAuthorizer.java:filterListCmdObjects(430)) - &lt;STRONG&gt;filterListCmdObjects: Internal error: null&lt;/STRONG&gt; RangerAccessResult object received back from isAccessAllowed()!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 00:36:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158774#M44960</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-11-02T00:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158775#M44961</link>
      <description>&lt;P&gt;good catch Neeraj. You can try disabling the ranger plugin via Ambari to test if it works otherwise. &lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 01:30:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158775#M44961</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2016-11-02T01:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158776#M44962</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/10337/srai.html" nodeid="10337"&gt;@srai&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Thanks for the observation, i haven't considered this as a Ranger issue because it says that Access is allowed..&lt;/P&gt;&lt;P&gt;Anyways - disabling Ranger plugin fixed the issue.... but i need the Ranger plugin so i could manage Hive authorizations using Ranger.&lt;/P&gt;&lt;P&gt;Can't i use two HiveServer2 instances while managing hive auth using Ranger ??&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 13:58:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158776#M44962</guid>
      <dc:creator>Adija1</dc:creator>
      <dc:date>2016-11-02T13:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158777#M44963</link>
      <description>&lt;P&gt;I've noticed that in the new Edge running the HiveServer2 in /etc/hive/conf/conf.server the ranger-hive-audit.xml &amp;amp; ranger-hive-security.xml were configured with localhost values. &lt;/P&gt;&lt;P&gt;Fixed the issue by setting the server name instead of localhost in Ranger settings (Ambari)
(External URL, authServiceHostName etc.) &lt;/P&gt;&lt;P&gt;Now the new server can contact the Ranger and Hive is working.
Thank you for the heads up !&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 23:32:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158777#M44963</guid>
      <dc:creator>Adija1</dc:creator>
      <dc:date>2016-11-02T23:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158778#M44964</link>
      <description>&lt;P&gt;I face the same isssue. i have 2 HS2 server.  Can't i use two HiveServer2 instances while managing hive auth using Ranger ??&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:22:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158778#M44964</guid>
      <dc:creator>suresh_b_k</dc:creator>
      <dc:date>2017-01-24T23:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158779#M44965</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3731/sureshbk.html" nodeid="3731"&gt;@suresh krish&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please see my answer just above your comment:&lt;/P&gt;&lt;P&gt;"Fixed the issue by setting the server name instead of localhost in Ranger settings (Ambari) (External URL, authServiceHostName etc.)"&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:28:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158779#M44965</guid>
      <dc:creator>Adija1</dc:creator>
      <dc:date>2017-01-24T23:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158780#M44966</link>
      <description>&lt;P&gt;may i know the property please.. which property to change.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:34:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158780#M44966</guid>
      <dc:creator>suresh_b_k</dc:creator>
      <dc:date>2017-01-24T23:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158781#M44967</link>
      <description>&lt;P&gt;i dont find any local host entry in my configuration. all i see is sever name. no local host entries &lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:36:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158781#M44967</guid>
      <dc:creator>suresh_b_k</dc:creator>
      <dc:date>2017-01-24T23:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158782#M44968</link>
      <description>&lt;P&gt;In your second HS2 server go to /etc/hive/conf/conf.server , check for "localhost" properties there especially in ranger-hive-audit.xml &amp;amp; ranger-hive-security.xml
&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 01:07:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158782#M44968</guid>
      <dc:creator>Adija1</dc:creator>
      <dc:date>2017-01-25T01:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158783#M44969</link>
      <description>&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;Make sure that in the Ranger's DB (the default is mysql) the user rangerlogger has permission to connect from the second Hive server.
&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:32:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158783#M44969</guid>
      <dc:creator>Adija1</dc:creator>
      <dc:date>2017-01-25T20:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to add another HiveServer for current metastore ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158784#M44970</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3731/sureshbk.html" nodeid="3731"&gt;@suresh krish&lt;/A&gt;&lt;P&gt;Also make sure that rangerlogger user has permissions to connect from the second hive server (in the Ranger's DB... the default is mysql).&lt;/P&gt;&lt;P&gt;The best way to do it is to try to connect to mysql on the first hive server from the second server using:
mysql -u rangerlogger -p -h &amp;lt;second hive server&amp;gt;&lt;/P&gt;&lt;P&gt;If permissions is denied - then login to mysql using root and run the following:&lt;/P&gt;&lt;P&gt;GRANT ALL PRIVILEGES ON *.* TO &lt;A href="mailto:'rangerlogger'@'hdp-edge2-mis.hadoop.local'"&gt;'rangerlogger'@'&amp;lt;second hive server&amp;gt;'&lt;/A&gt; 
IDENTIFIED BY &lt;A href="mailto:'au@rscream!'"&gt;'&amp;lt;PASSWORD&amp;gt;'&lt;/A&gt; WITH GRANT OPTION;&lt;/P&gt;&lt;P&gt;FLUSH PRIVILEGES;&lt;/P&gt;&lt;P&gt;Then check again.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:36:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-another-HiveServer-for-current-metastore/m-p/158784#M44970</guid>
      <dc:creator>Adija1</dc:creator>
      <dc:date>2017-01-25T20:36:28Z</dc:date>
    </item>
  </channel>
</rss>

