<?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 metadata does not not show up in Atlas with hook in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/337082#M232490</link>
    <description>&lt;P&gt;Hi! Do you resolve the question?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 03:34:03 GMT</pubDate>
    <dc:creator>sqlboy</dc:creator>
    <dc:date>2022-02-25T03:34:03Z</dc:date>
    <item>
      <title>Hive metadata does not not show up in Atlas with hook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197859#M159910</link>
      <description>&lt;P&gt;	I have Hive and Atlas installed on HDP 2.6.5 with Hive hook for Atlas enabled and no changes to the configuration. I am able to successfully import Hive metadata with import-hive.sh, but the Hive hook does not seem to work. When I create a database in Hive, it does not show up in Atlas.&lt;/P&gt;&lt;P&gt;	&lt;STRONG&gt;The only things I see in the logs are&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;	atlas/application.log:&lt;/P&gt;
&lt;PRE&gt;ERROR - [pool-2-thread-5 - de30e17a-1db7-4aad-8f34-a61a27b33cff:] ~ graph rollback due to exception AtlasBaseException:Instance __AtlasUserProfile with unique attribute {name=admin} does not exist (GraphTransactionInterceptor:73)
&lt;/PRE&gt;&lt;P&gt;	hive logs:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;./hiveserver2.log.2018-09-10:2018-09-10 14:55:42,587 INFO [HiveServer2-Background-Pool: Thread-61]: hook.AtlasHook (AtlasHook.java:&amp;lt;clinit&amp;gt;(99)) - Created Atlas Hook &lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;./hiveserver2.log:2018-09-11 09:04:20,100 INFO [HiveServer2-Background-Pool: Thread-3201]: log.PerfLogger (PerfLogger.java:PerfLogBegin(149)) - &amp;lt;PERFLOG method=PostHook.org.apache.atlas.hive.hook.HiveHook from=org.apache.hadoop.hive.ql.Driver&amp;gt; &lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;./hiveserver2.log:2018-09-11 09:04:20,100 INFO [HiveServer2-Background-Pool: Thread-3201]: log.PerfLogger (PerfLogger.java:PerfLogBegin(149)) - &amp;lt;PERFLOG method=PostHook.org.apache.atlas.hive.hook.HiveHook from=org.apache.hadoop.hive.ql.Driver&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;	When I search for the database name in /kafka-logs/, it only shows up in ./ATLAS_HOOK-0/00000000000000000014.log, and the entry looks like&lt;/P&gt;
&lt;PRE&gt;{"msgSourceIP":"172.18.181.235","msgCreatedBy":"hive","msgCreationTime":1536681860109,"message":{"entities":{"referredEntities":{},"entities":[{"typeName":"hive_db","attributes":{"owner":"hive","ownerType":"USER","qualifiedName":"oyster9@bigcentos","clusterName":"bigcentos","name":"oyster9","location":"hdfs://host.com:8020/apps/hive/warehouse/oyster9.db","parameters":{}},"guid":"-82688521591125","version":0}]},"type":"ENTITY_CREATE_V2","user":"hive"},"version":{"version":"1.0.0"},"msgCompressionKind":"NONE","msgSplitIdx":1,"msgSplitCount":1}
&lt;/PRE&gt;&lt;P&gt;	Which tells me that the message about the new DB gets passed to the Kafka stream, but is not read by Atlas.&lt;/P&gt;&lt;P&gt;	I do not know where to look next, and my goal is to make it so that when a database is created in Hive, it shows up in Atlas automatically.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 09:58:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197859#M159910</guid>
      <dc:creator>neagamaxim</dc:creator>
      <dc:date>2018-09-12T09:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hive metadata does not not show up in Atlas with hook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197860#M159911</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/92158/neagamaxim.html" nodeid="92158"&gt;@Maxim
 Neaga
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please check if you have the Hive Clients installed on Atlas Node?&lt;/P&gt;&lt;P&gt;Also can you please let us know if you have setup Ranger ? If yes, then have added proper policies/permissions?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 10:12:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197860#M159911</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-09-12T10:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hive metadata does not not show up in Atlas with hook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197861#M159912</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, I have Hive clients installed on all nodes.&lt;/P&gt;&lt;P&gt;I do have Ranger installed, but all plugins are disabled, so I do not think it affects it in any way.&lt;/P&gt;&lt;P&gt;I &lt;STRONG&gt;do&lt;/STRONG&gt; see the messages about the new database posted into Kafka ATLAS_HOOK stream with&lt;/P&gt;&lt;PRE&gt;./kafka-console-consumer.sh --zookeeper localhost:2181 --topic ATLAS_HOOK --from-beginning&lt;/PRE&gt;&lt;P&gt;but for some reason, it does not work with --bootstrap-server:&lt;/P&gt;&lt;PRE&gt;./kafka-console-consumer.sh --bootstrap-server localhost:6667 --topic ATLAS_HOOK --from-beginning
&lt;BR /&gt;[2018-09-12 14:41:32,010] WARN [Consumer clientId=consumer-1, groupId=console-consumer-67769] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Sep 2018 06:28:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197861#M159912</guid>
      <dc:creator>neagamaxim</dc:creator>
      <dc:date>2018-09-13T06:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hive metadata does not not show up in Atlas with hook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197862#M159913</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/92158/neagamaxim.html" nodeid="92158"&gt;@Maxim
 Neaga
&lt;/A&gt; It is safe to ignore the error related to &lt;EM&gt;__AtlasUserProfile&lt;/EM&gt;. Its a false positive.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 23:28:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197862#M159913</guid>
      <dc:creator>amestry</dc:creator>
      <dc:date>2018-09-24T23:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hive metadata does not not show up in Atlas with hook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197863#M159914</link>
      <description>&lt;P&gt;Changing &lt;B&gt;offsets.topic.replication.factor &lt;/B&gt;in Kafka config to 1 (number if brokers) addressed the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 00:42:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197863#M159914</guid>
      <dc:creator>neagamaxim</dc:creator>
      <dc:date>2018-11-01T00:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hive metadata does not not show up in Atlas with hook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197864#M159915</link>
      <description>&lt;P&gt;I was seeing similar errors before. Changing the replication to 1 for the &lt;B&gt;offsets.topic.replication.factor &lt;/B&gt;property seemed to resolve the issue. I had only one Kafka broker. Dont see the errors now and see the hive tables come in.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 04:01:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/197864#M159915</guid>
      <dc:creator>msoomar</dc:creator>
      <dc:date>2018-11-30T04:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hive metadata does not not show up in Atlas with hook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/337082#M232490</link>
      <description>&lt;P&gt;Hi! Do you resolve the question?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 03:34:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/337082#M232490</guid>
      <dc:creator>sqlboy</dc:creator>
      <dc:date>2022-02-25T03:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hive metadata does not not show up in Atlas with hook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/378578#M243589</link>
      <description>&lt;P&gt;Hi, I am facing same issue even after changing the para -&amp;nbsp;offsets.topic.replication.factor to 1 in kafka conf. Note that I have CDP 7.1.7 and total 8 brokers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to import using import-hive.sh but not using hook. Any suggestion will be appreciates.&lt;/P&gt;&lt;P&gt;Thanks, Syed.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 10:48:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-metadata-does-not-not-show-up-in-Atlas-with-hook/m-p/378578#M243589</guid>
      <dc:creator>Syed_SHea</dc:creator>
      <dc:date>2023-11-04T10:48:48Z</dc:date>
    </item>
  </channel>
</rss>

