- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to add OR modify comment for an existing hive table
- Labels:
-
Apache Atlas
Created on ‎10-25-2016 05:53 AM - edited ‎08-18-2019 06:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After creating a table in Hive is it possible to modify the "comment" shown in highlight in attached screenshot?
Also for a table without any comment key field, is it possible to add the comment value?
Created ‎10-25-2016 05:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no support for editing entities from UI as of now. But you can use the entity update REST API to update comment section for the hive table.
Please refer to below documents for the same:
http://atlas.incubator.apache.org/AtlasTechnicalUserGuide.pdf
http://atlas.incubator.apache.org/api/resource_EntityResource.html
Created ‎10-25-2016 10:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's not possible to make edits in UI as of now. In addition to @Ayub Khan 's answer , hive table can be altered using the hive command ALTER TABLE table1 SET TBLPROPERTIES ('comment' = 'your comments'); , and an update is sent to Atlas. You can see the updated comment in the UI.
For the second question , if hive table is created without any comments , it is marked "null". So it can be updated via REST APIs or through hive command itself.
Created ‎10-26-2016 01:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The article: Modify Atlas Entity properties using REST API commands contains a full description for how to update both the comment and description entity properties for Atlas managed hive_table types.
