<?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: Discovering existing Hive tables in Atlas in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242979#M204778</link>
    <description>&lt;P&gt;I've been trying this now for one and a half day. I've been trying to approach this from all kinds of directions (writing the JSON from scratch, modifying exported JSON data from another table, trying the old REST API version). I've been searching the web for any solution. I'm about to give up. Anyone else ideas?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jan 2019 23:29:58 GMT</pubDate>
    <dc:creator>marcel-jan</dc:creator>
    <dc:date>2019-01-28T23:29:58Z</dc:date>
    <item>
      <title>Discovering existing Hive tables in Atlas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242978#M204777</link>
      <description>&lt;P&gt;Is there a way to let Atlas discover existing Hive tables (in HDP 2.6.5)? I've got a couple of Hive external tables that existed before Atlas was enabled. It didn't pick them up, but Atlas does find new tables.&lt;/P&gt;&lt;P&gt;I'm trying to get one Hive table in Atlas, but it's not exactly easy to do that for tables, columns, storagedesc and references. There are very few (simple) examples out there. I'm getting one ObjectId is not valid AtlasObjectId error after the other.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 00:02:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242978#M204777</guid>
      <dc:creator>marcel-jan</dc:creator>
      <dc:date>2019-01-25T00:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Discovering existing Hive tables in Atlas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242979#M204778</link>
      <description>&lt;P&gt;I've been trying this now for one and a half day. I've been trying to approach this from all kinds of directions (writing the JSON from scratch, modifying exported JSON data from another table, trying the old REST API version). I've been searching the web for any solution. I'm about to give up. Anyone else ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 23:29:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242979#M204778</guid>
      <dc:creator>marcel-jan</dc:creator>
      <dc:date>2019-01-28T23:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Discovering existing Hive tables in Atlas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242980#M204779</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16354/marcel-jan.html" nodeid="16354"&gt;@Marcel-Jan Krijgsman&lt;/A&gt; Do run the /usr/hdp/current/atlas-server/hook-bin/import-hive.sh utility which imports the existing hive tables into atlas. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 23:50:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242980#M204779</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2019-01-28T23:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Discovering existing Hive tables in Atlas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242981#M204780</link>
      <description>&lt;P&gt;Thanks, &lt;A rel="user" href="https://community.cloudera.com/users/10159/snemuri.html" nodeid="10159"&gt;@Sandeep Nemuri&lt;/A&gt;. I'll try that.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 00:01:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242981#M204780</guid>
      <dc:creator>marcel-jan</dc:creator>
      <dc:date>2019-01-29T00:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Discovering existing Hive tables in Atlas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242982#M204781</link>
      <description>&lt;P&gt;&lt;A href="@Marcel-Jan Krijgsman"&gt;&lt;EM&gt; @Marcel-Jan Krijgsman&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;So frustrating indeed have you tried running the hive import from&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;/usr/hdp/2.6.5.0-292/atlas/&lt;/STRONG&gt;&lt;STRONG&gt;hook-bin&lt;/STRONG&gt; ? The output should look like below&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# ./import-hive.sh
Using Hive configuration directory [/etc/hive/conf]
Log file for import is /usr/hdp/current/atlas-server/logs/import-hive.log
log4j:WARN No such property [maxFileSize] in org.apache.log4j.PatternLayout.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.PatternLayout.
Enter username for atlas :- admin
Enter password for atlas :-
Hive Meta Data imported successfully!!!&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;After running successfully you should be able to see your tables in Atlas&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 00:07:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242982#M204781</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-01-29T00:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Discovering existing Hive tables in Atlas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242983#M204782</link>
      <description>&lt;P&gt;Seems to be the same script which i mentioned above. Isn't it?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 00:33:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242983#M204782</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2019-01-29T00:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Discovering existing Hive tables in Atlas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242984#M204783</link>
      <description>&lt;P&gt;HTH: &lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/48068756/how-do-i-update-apache-atlas-metadata?rq=1" target="_blank"&gt;https://stackoverflow.com/questions/48068756/how-do-i-update-apache-atlas-metadata?rq=1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 04:10:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242984#M204783</guid>
      <dc:creator>doonaks</dc:creator>
      <dc:date>2019-01-29T04:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Discovering existing Hive tables in Atlas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242985#M204784</link>
      <description>&lt;P&gt;Thanks for the responses everyone. I saw I needed to have the Atlas admin account to run this script. I don't have it, but I've asked the people who do (a company that maintains the Hadoop cluster for us) to run it for me.&lt;/P&gt;&lt;P&gt;While we're waiting, it might be interesting to share the one thing that I did get working. So I put this in the JSON:&lt;/P&gt;&lt;PRE&gt;{
  "entity": {
    "typeName": "hive_table",
    "attributes": {
      "description": null,
      "name": "tablename",
      "owner": "degierf",
      "qualifiedName": "test.tablename@clustername",
      "replicatedFrom": [],
      "replicatedTo": [],
      "aliases": [],
      "columns": [],
      "comment": null,
      "createTime": 1494949241,
      "db": {
        "guid": "557c073c-da51-461c-8bba-3594e004db63",
        "typeName": "hive_db"
      },
      "lastAccessTime": 1494949241,
      "partitionKeys": [],
      "retention": null,
      "sd": null,
      "tableType": null,
      "temporary": null,
      "viewExpandedText": null,
      "viewOriginalText": null
    },
    "guid": -1
  },
  "referredEntities": {}
}&lt;/PRE&gt;&lt;P&gt;Then I ran it with the entity endpoint:&lt;/P&gt;&lt;PRE&gt;curl -u myaccount -i -H "Content-Type: application/json" -X POST -d @upload_hive_table_def.json &lt;A href="https://atlasnode:21000/api/atlas/v2/entity" target="_blank"&gt;https://atlasnode:21000/api/atlas/v2/entity&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;What you get is that Atlas but wasn't the desired result : I managed to get Atlas to recognise 
there's a Hive table. Just not the columns, references, etc.. I was hoping to add them one by one after this, but that didn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 16:21:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242985#M204784</guid>
      <dc:creator>marcel-jan</dc:creator>
      <dc:date>2019-01-29T16:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Discovering existing Hive tables in Atlas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242986#M204785</link>
      <description>&lt;P&gt;import-hive.sh was indeed the solution. &lt;/P&gt;&lt;P&gt;We only got it working when admin had read/execute access in Ranger to protected data in HDFS.&lt;/P&gt;&lt;P&gt;Now all Hive tables have been discovered.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 01:56:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242986#M204785</guid>
      <dc:creator>marcel-jan</dc:creator>
      <dc:date>2019-02-01T01:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Discovering existing Hive tables in Atlas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242987#M204786</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@Sandeep Nemuri"&gt; @Sandeep Nemuri&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I think we responded at almost the same time, when some is clicking submit, there is no logic that checks whether a similar answer has already been give &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Maybe you should have added that he needs to run the script as Atlas admin user as illustrated  which he wasn't aware of &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 23:30:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Discovering-existing-Hive-tables-in-Atlas/m-p/242987#M204786</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-02-01T23:30:10Z</dc:date>
    </item>
  </channel>
</rss>

