<?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 metastore authentication in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159643#M53325</link>
    <description>&lt;P&gt;Looks like the kinit is working. Did you try beeline connection and was is successful?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2017 22:52:11 GMT</pubDate>
    <dc:creator>aparanjape</dc:creator>
    <dc:date>2017-02-06T22:52:11Z</dc:date>
    <item>
      <title>hive metastore authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159639#M53321</link>
      <description>&lt;P&gt;I got Mysql which is metadata for oozie,hive,amabri. this was setup before cluster is setup. I do not see mysql as a service in hive home. I've enabled local MIT KDC and i see below in metastore.log...i donot see it anywhere it is being authenticated to kdc&lt;/P&gt;&lt;P&gt;2017-02-03 11:00:13,343 INFO  [main]: timeline.HadoopTimelineMetricsSink (HadoopTimelineMetricsSink.java:init(82)) - Initializing Timeline metrics sink.
2017-02-03 11:00:13,345 INFO  [main]: timeline.HadoopTimelineMetricsSink (HadoopTimelineMetricsSink.java:init(100)) - Identified hostname = master2.chrsv.com, serviceName = hivemetastore
2017-02-03 11:00:14,257 INFO  [main]: timeline.HadoopTimelineMetricsSink (HadoopTimelineMetricsSink.java:init(118)) - Collector Uri: &lt;A href="http://worker1.chrsv.com:6188/ws/v1/timeline/metrics" target="_blank"&gt;http://worker1.chrsv.com:6188/ws/v1/timeline/metrics&lt;/A&gt;
2017-02-03 11:00:14,592 INFO  [main]: impl.MetricsSinkAdapter (MetricsSinkAdapter.java:start(206)) - Sink timeline started
2017-02-03 11:00:15,133 INFO  [main]: impl.MetricsSystemImpl (MetricsSystemImpl.java:startTimer(376)) - Scheduled snapshot period at 10 second(s).
2017-02-03 11:00:15,133 INFO  [main]: impl.MetricsSystemImpl (MetricsSystemImpl.java:start(192)) - hivemetastore metrics system started
2017-02-03 11:00:15,938 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:newRawStore(667)) - 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
2017-02-03 11:00:16,495 INFO  [main]: metastore.ObjectStore (ObjectStore.java:initializeHelper(370)) - ObjectStore, initialize called
2017-02-03 11:00:26,552 INFO  [main]: metastore.ObjectStore (ObjectStore.java:getPMF(474)) - Setting MetaStore object pin classes with hive.metastore.cache.pinobjtypes="Table,Database,Type,FieldSchema,Order"
2017-02-03 11:00:39,897 INFO  [main]: metastore.MetaStoreDirectSql (MetaStoreDirectSql.java:&amp;lt;init&amp;gt;(138)) - Using direct SQL, underlying DB is MYSQL
2017-02-03 11:00:39,915 INFO  [main]: metastore.ObjectStore (ObjectStore.java:setConf(284)) - Initialized ObjectStore
2017-02-03 11:00:41,013 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:createDefaultRoles_core(741)) - Added admin role in metastore
2017-02-03 11:00:41,034 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:createDefaultRoles_core(750)) - Added public role in metastore
2017-02-03 11:00:41,131 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:addAdminUsers_core(790)) - No user is added in admin role, since config is empty
2017-02-03 11:00:41,139 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:init(525)) - Begin calculating metadata count metrics.
2017-02-03 11:00:41,233 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:init(527)) - Finished metadata count metrics: 1 databases, 0 tables, 0 partitions.
2017-02-03 11:00:42,847 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:startMetaStore(6298)) - Starting DB backed MetaStore Server with SetUGI enabled
2017-02-03 11:00:42,861 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:startMetaStore(6352)) - Started the new metaserver on port [9083]...
2017-02-03 11:00:42,862 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:startMetaStore(6354)) - Options.minWorkerThreads = 200
2017-02-03 11:00:42,862 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:startMetaStore(6356)) - Options.maxWorkerThreads = 100000
2017-02-03 11:00:42,862 INFO  [main]: metastore.HiveMetaStore (HiveMetaStore.java:startMetaStore(6358)) - TCP keepalive = true&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 01:15:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159639#M53321</guid>
      <dc:creator>chrsvarma</dc:creator>
      <dc:date>2017-02-04T01:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: hive metastore authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159640#M53322</link>
      <description>&lt;P&gt;I can't speak to the logging issue just yet, but is there a problem with the cluster behavior? Can you:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;kinit -k -t keytab principal
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Connection string to connect with beeline&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;!connect jdbc:hive2://hostname:10000/default;principal=hive/_HOST@REALM&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Feb 2017 03:01:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159640#M53322</guid>
      <dc:creator>aparanjape</dc:creator>
      <dc:date>2017-02-04T03:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: hive metastore authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159641#M53323</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/387/aparanjape.html" nodeid="387"&gt;@Ameet Paranjape&lt;/A&gt; &lt;/P&gt;&lt;P&gt;[hive@master2 ~]$ kinit -k -t /etc/security/keytabs/hive.service.keytab &lt;/P&gt;&lt;P&gt;kinit: Cannot determine realm for host (principal host/master2.chrsv.com@)&lt;/P&gt;&lt;P&gt;Not sure why it is not picking since all these were setup by Ambari...howevr when i do kadmin i can see the principle as&lt;/P&gt;&lt;P&gt;hive/master1.chrsv.com@KERBEROS.COM
hive/master2.chrsv.com@KERBEROS.COM
hive/worker1.chrsv.com@KERBEROS.COM
hive/worker2.chrsv.com@KERBEROS.COM&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 04:15:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159641#M53323</guid>
      <dc:creator>chrsvarma</dc:creator>
      <dc:date>2017-02-04T04:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: hive metastore authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159642#M53324</link>
      <description>&lt;P&gt;my bad..i didnot check syntax earlier...&lt;/P&gt;&lt;P&gt;[hive@master2 ~]$ kinit -k -t /etc/security/keytabs/hive.service.keytab hive/master2.chrsv.com@KERBEROS.COM
[hive@master2 ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_501
Default principal: hive/master2.chrsv.com@KERBEROS.COM
Valid starting     Expires            Service principal
02/03/17 14:55:41  02/04/17 14:55:41  krbtgt/KERBEROS.COM@KERBEROS.COM
        renew until 02/03/17 14:55:41
[hive@master2 ~]$&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 04:56:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159642#M53324</guid>
      <dc:creator>chrsvarma</dc:creator>
      <dc:date>2017-02-04T04:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: hive metastore authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159643#M53325</link>
      <description>&lt;P&gt;Looks like the kinit is working. Did you try beeline connection and was is successful?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 22:52:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159643#M53325</guid>
      <dc:creator>aparanjape</dc:creator>
      <dc:date>2017-02-06T22:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: hive metastore authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159644#M53326</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/387/aparanjape.html" nodeid="387"&gt;@Ameet Paranjape&lt;/A&gt; we are talking about hive metastore....hiveserver itself is not talking to hivemetastore...so connecting to beeline does not help.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 03:54:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159644#M53326</guid>
      <dc:creator>chrsvarma</dc:creator>
      <dc:date>2017-02-09T03:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: hive metastore authentication</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159645#M53327</link>
      <description>&lt;P&gt;this is because mysql is external to ambari and when kerberos is enabled ambari is not smart enough to recognize mysql and it didnot create keytabs for mysql. that was the reason hive was not able to start.&lt;/P&gt;&lt;P&gt;i still need to find out a way to create keytabs for non ambari components. as of now i moved these components to another server where all the services were deployed through ambari.&lt;/P&gt;&lt;P&gt;thanks to all for your help so far.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2017 06:42:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-metastore-authentication/m-p/159645#M53327</guid>
      <dc:creator>chrsvarma</dc:creator>
      <dc:date>2017-02-18T06:42:30Z</dc:date>
    </item>
  </channel>
</rss>

