<?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: Atlas not tracking Hive lineage in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-not-tracking-Hive-lineage/m-p/170259#M45724</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14257/jannikfranz.html" nodeid="14257"&gt;@Jannik Franz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You don't say whether you started the Kafka service.  Kafka the messaging system used to keep everything in sync.  You can read more about the configuration here &lt;A target="_blank" href="http://atlas.incubator.apache.org/Configuration.html"&gt;http://atlas.incubator.apache.org/Configuration.html&lt;/A&gt; and architecture here &lt;A href="http://atlas.incubator.apache.org/Architecture.html"&gt;http://atlas.incubator.apache.org/Architecture.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Can you confirm that Kafka is started?  If it is not, can you start Kafka and try to repeat the process?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2016 01:48:02 GMT</pubDate>
    <dc:creator>myoung</dc:creator>
    <dc:date>2016-11-10T01:48:02Z</dc:date>
    <item>
      <title>Atlas not tracking Hive lineage</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-not-tracking-Hive-lineage/m-p/170258#M45723</link>
      <description>&lt;P&gt;I'm using the HDP Sandbox with HDP 2.5 and Atlas 0.7 in a VirtualBox (12gB RAM allocated for the VM). To install Atlas I started HBase, installed and started Ambari Infra (solr) and then installed and started Atlas. Everything works as intended so far.&lt;/P&gt;&lt;P&gt;However when I'm creating tables in Hive and adding data then the data is not tracked in Atlas. I tried setting the hooks.synchronous configuration of hive to true, but nothing changed.&lt;/P&gt;&lt;P&gt;Trying to use the import-hive.sh yields the following errors&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# /usr/hdp/current/atlas-server/hook-bin/import-hive.sh
Using Hive configuration directory [/etc/hive/conf]
Log file for import is /usr/hdp/current/atlas-server/logs/import-hive.log
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#StaticLoggerBinder" target="_blank"&gt;http://www.slf4j.org/codes.html#StaticLoggerBinder&lt;/A&gt; for further detail                               s.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/co                               nfiguration/PropertiesConfiguration
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14                               2)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBr                               idge.java:636)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.Pr                               opertiesConfiguration
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 13 more
Failed to import Hive Data Model!!!
&lt;/PRE&gt;&lt;P&gt;Is it due to the Logger? In the internet they tell me to copy over the required jars into the atlas/hadoop classpath, but&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# find /usr/ -name slf*.jar -print
/usr/hdp/share/hst/hst-common/lib/slf4j-api-1.7.5.jar
/usr/hdp/share/hst/hst-common/lib/slf4j-log4j12-1.7.5.jar
/usr/hdp/2.5.0.0-1245/atlas/hook/kafka-topic-setup/slf4j-api-1.7.7.jar
/usr/hdp/2.5.0.0-1245/atlas/hook/kafka-topic-setup/slf4j-log4j12-1.7.7.jar
/usr/hdp/2.5.0.0-1245/atlas/server/webapp/atlas/WEB-INF/lib/slf4j-api-1.7.7.jar
/usr/hdp/2.5.0.0-1245/atlas/server/webapp/atlas/WEB-INF/lib/slf4j-log4j12-1.7.7.jar

...&lt;/PRE&gt;&lt;P&gt;shows that the jars _should_ be present.&lt;/P&gt;&lt;P&gt;Following this Post (https://community.hortonworks.com/questions/63284/failed-to-import-hive-data-model.html) helped me get across this. &lt;/P&gt;&lt;P&gt;However I received another REST response error&lt;/P&gt;&lt;PRE&gt;2016-11-08 16:03:15,383 DEBUG - [main:] ~ Creating entities: ["{\n  \"jsonClass\":\"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference\",\n  \"id\":{\n    \"jsonClass\":\"org.apache.atlas.typesystem.json.InstanceSerialization$_Id\",\n    \"id\":\"-7591808153364\",\n    \"version\":0,\n    \"typeName\":\"hive_db\",\n    \"state\":\"ACTIVE\"\n  },\n  \"typeName\":\"hive_db\",\n  \"values\":{\n    \"name\":\"default\",\n    \"location\":\"hdfs:\/\/sandbox.hortonworks.com:8020\/apps\/hive\/warehouse\",\n    \"description\":\"Default Hive database\",\n    \"ownerType\":2,\n    \"qualifiedName\":\"default@Sandbox\",\n    \"owner\":\"public\",\n    \"clusterName\":\"Sandbox\",\n    \"parameters\":{\n      \n    }\n  },\n  \"traitNames\":[\n    \n  ],\n  \"traits\":{\n    \n  }\n}"] (AtlasClient:694)
2016-11-08 16:03:15,390 DEBUG - [main:] ~ Using resource &lt;A href="http://sandbox.hortonworks.com:21000/api/atlas/entities" target="_blank"&gt;http://sandbox.hortonworks.com:21000/api/atlas/entities&lt;/A&gt; for 0 times (AtlasClient:784)
2016-11-08 16:04:15,485 WARN  - [main:] ~ Handled exception in calling api api/atlas/entities (AtlasClient:791)
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
        at com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasicAuthFilter.java:81)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
        at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
        at com.sun.jersey.api.client.WebResource$Builder.method(WebResource.java:623)
        at org.apache.atlas.AtlasClient.callAPIWithResource(AtlasClient.java:1188)
        at org.apache.atlas.AtlasClient.callAPIWithRetries(AtlasClient.java:785)
        at org.apache.atlas.AtlasClient.callAPI(AtlasClient.java:1214)
        at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:695)
        at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:712)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerInstance(HiveMetaStoreBridge.java:197)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerDatabase(HiveMetaStoreBridge.java:155)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importDatabases(HiveMetaStoreBridge.java:124)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importHiveMetadata(HiveMetaStoreBridge.java:118)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:662)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
        at java.net.SocketInputStream.read(SocketInputStream.java:170)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:240)
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147)
        ... 15 more
2016-11-08 16:04:15,490 WARN  - [main:] ~ Exception's cause: class java.net.SocketTimeoutException (AtlasClient:792)
Exception in thread "main" com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
        at com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasicAuthFilter.java:81)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
        at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
        at com.sun.jersey.api.client.WebResource$Builder.method(WebResource.java:623)
        at org.apache.atlas.AtlasClient.callAPIWithResource(AtlasClient.java:1188)
        at org.apache.atlas.AtlasClient.callAPIWithRetries(AtlasClient.java:785)
        at org.apache.atlas.AtlasClient.callAPI(AtlasClient.java:1214)
        at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:695)
        at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:712)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerInstance(HiveMetaStoreBridge.java:197)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerDatabase(HiveMetaStoreBridge.java:155)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importDatabases(HiveMetaStoreBridge.java:124)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importHiveMetadata(HiveMetaStoreBridge.java:118)
        at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:662)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
        at java.net.SocketInputStream.read(SocketInputStream.java:170)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:240)
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147)
        ... 15 more
Failed to import Hive Data Model!!!
&lt;/PRE&gt;&lt;P&gt;So it fails to create the entities&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 16:54:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-not-tracking-Hive-lineage/m-p/170258#M45723</guid>
      <dc:creator>jannik_franz</dc:creator>
      <dc:date>2016-11-09T16:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas not tracking Hive lineage</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-not-tracking-Hive-lineage/m-p/170259#M45724</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14257/jannikfranz.html" nodeid="14257"&gt;@Jannik Franz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You don't say whether you started the Kafka service.  Kafka the messaging system used to keep everything in sync.  You can read more about the configuration here &lt;A target="_blank" href="http://atlas.incubator.apache.org/Configuration.html"&gt;http://atlas.incubator.apache.org/Configuration.html&lt;/A&gt; and architecture here &lt;A href="http://atlas.incubator.apache.org/Architecture.html"&gt;http://atlas.incubator.apache.org/Architecture.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Can you confirm that Kafka is started?  If it is not, can you start Kafka and try to repeat the process?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 01:48:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-not-tracking-Hive-lineage/m-p/170259#M45724</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-11-10T01:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas not tracking Hive lineage</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-not-tracking-Hive-lineage/m-p/170260#M45725</link>
      <description>&lt;P&gt;Thanks. It didn't mention I needed Kafka. After starting it worked fine!&lt;/P&gt;&lt;P&gt;I received another error, unrelated to this and will open another thread.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 16:16:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-not-tracking-Hive-lineage/m-p/170260#M45725</guid>
      <dc:creator>jannik_franz</dc:creator>
      <dc:date>2016-11-10T16:16:59Z</dc:date>
    </item>
  </channel>
</rss>

