<?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 How Atlas know that Table is created in Hive in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190179#M61973</link>
    <description>&lt;P&gt;I know that Atlas did it automatically when we make necessary configurations for import-hive.sh etc files.
But I want to know internal working of Atlas. What happens behind the scene. Which class/module is invoked/involved?&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 16:56:42 GMT</pubDate>
    <dc:creator>m_imran_tariq</dc:creator>
    <dc:date>2017-05-29T16:56:42Z</dc:date>
    <item>
      <title>How Atlas know that Table is created in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190179#M61973</link>
      <description>&lt;P&gt;I know that Atlas did it automatically when we make necessary configurations for import-hive.sh etc files.
But I want to know internal working of Atlas. What happens behind the scene. Which class/module is invoked/involved?&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 16:56:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190179#M61973</guid>
      <dc:creator>m_imran_tariq</dc:creator>
      <dc:date>2017-05-29T16:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: How Atlas know that Table is created in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190180#M61974</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17506/mimrantariq.html" nodeid="17506"&gt;@Muhammad Imran Tariq&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Atlas Hive Hook in configured in Hive by set-up  in hive-site.xml.&lt;/P&gt;&lt;PRE&gt;   &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;hive.exec.post.hooks&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;org.apache.atlas.hive.hook.HiveHook&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;  whenever a table is created in hive, a event is triggered which invokes the atlas hive hook. This hook sends message to Atlas via notification to kafka, The notification in kafka is consumed by Atlas and hive entity is created. &lt;/P&gt;&lt;P&gt;Refer:-&lt;/P&gt;&lt;P&gt;&lt;A href="http://atlas.incubator.apache.org/Bridge-Hive.html" target="_blank"&gt;http://atlas.incubator.apache.org/Bridge-Hive.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 20:07:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190180#M61974</guid>
      <dc:creator>nixonrodrigues</dc:creator>
      <dc:date>2017-05-29T20:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: How Atlas know that Table is created in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190181#M61975</link>
      <description>&lt;P&gt;cool. So what type of information Hook gets from Hive and how? I basically wants to know that. Did Hook query Hive to know information?&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 20:23:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190181#M61975</guid>
      <dc:creator>m_imran_tariq</dc:creator>
      <dc:date>2017-05-29T20:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How Atlas know that Table is created in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190182#M61976</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17506/mimrantariq.html" nodeid="17506"&gt;@Muhammad Imran Tariq&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Following information is passed from Hive to Atlas-Hive Hook from Hive whenever any DML statement is executed when Atlas Hive hook is configured.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/incubator-atlas/blob/master/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java#L172 "&gt;refer this code on github&lt;/A&gt; - &lt;/P&gt;&lt;PRE&gt;final HiveEventContext event = new HiveEventContext();
            event.setInputs(hookContext.getInputs());
            event.setOutputs(hookContext.getOutputs());
            event.setHookType(hookContext.getHookType());
            final UserGroupInformation ugi = hookContext.getUgi() == null ? Utils.getUGI() : hookContext.getUgi();
            event.setUgi(ugi);
            event.setUser(getUser(hookContext.getUserName(), hookContext.getUgi()));
            event.setOperation(OPERATION_MAP.get(hookContext.getOperationName()));
            event.setQueryId(hookContext.getQueryPlan().getQueryId());
            event.setQueryStr(hookContext.getQueryPlan().getQueryStr());
            event.setQueryStartTime(hookContext.getQueryPlan().getQueryStartTime());
            event.setQueryType(hookContext.getQueryPlan().getQueryPlan().getQueryType());
            event.setLineageInfo(hookContext.getLinfo());&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 May 2017 13:44:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190182#M61976</guid>
      <dc:creator>nixonrodrigues</dc:creator>
      <dc:date>2017-05-30T13:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How Atlas know that Table is created in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190183#M61977</link>
      <description>&lt;P&gt;This means Hive will automatically notify Atlas. What if I have MySQL instead of Hive. I am sure MySQL will not notify like Hive. Right? If yes then what can be done to achieve notification in case of MySQL?&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 15:56:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190183#M61977</guid>
      <dc:creator>m_imran_tariq</dc:creator>
      <dc:date>2017-05-30T15:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: How Atlas know that Table is created in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190184#M61978</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17506/mimrantariq.html" nodeid="17506"&gt;@Muhammad Imran Tariq&lt;/A&gt;, You are right MySQL will not notify like Hive, check if MySql has any mechanism to invoke the class / method when there is a change in metadata.&lt;/P&gt;&lt;P&gt;Do share your findings&lt;/P&gt;&lt;P&gt;Nixon&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 01:14:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190184#M61978</guid>
      <dc:creator>nixonrodrigues</dc:creator>
      <dc:date>2017-05-31T01:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: How Atlas know that Table is created in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190185#M61979</link>
      <description>&lt;P&gt;&lt;A href="https://dev.mysql.com/doc/refman/5.7/en/writing-plugins.html" target="_blank"&gt;https://dev.mysql.com/doc/refman/5.7/en/writing-plugins.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;MySQL does offer capability to write plugins which might offer similar functionality as the Hive|AtlasHook.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 23:59:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-Atlas-know-that-Table-is-created-in-Hive/m-p/190185#M61979</guid>
      <dc:creator>anaik</dc:creator>
      <dc:date>2017-06-06T23:59:30Z</dc:date>
    </item>
  </channel>
</rss>

