Ayub Khan created ATLAS-1600: -------------------------------- Summary: Atlas export API is fetching all the metadata irrespective of any filter provided(for example hive_db) Key: ATLAS-1600 URL: https://issues.apache.org/jira/browse/ATLAS-1600 Project: Atlas Issue Type: Bug Components: atlas-core Affects Versions: trunk, 0.8-incubating Reporter: Ayub Khan Fix For: trunk, 0.8-incubating
With the export REST call for getting just one DB/table information, atlas is returning the entire metadata curl -k -v --negotiate -u: -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d "@export_db.json" "https://ctr-e129-1487033772569-24164-01-000005.hwx.site:21443/api/atlas/admin/export" > outputs/tables.zip {noformat} [hrt_qa@ctr-e129-1487033772569-24164-01-000003 outputs]$ python -m json.tool < atlas-export-info.json { "clientIpAddress": "172.27.41.67", "hostName": "172.27.31.135", "metrics": { "duration": 2842, "entities": 524, "entity:falcon_cluster": 1, "entity:falcon_feed": 10, "entity:falcon_feed_creation": 10, "entity:falcon_feed_replication": 10, "entity:falcon_process": 5, "entity:hdfs_path": 13, "entity:hive_column": 245, "entity:hive_column_lineage": 34, "entity:hive_db": 2, "entity:hive_process": 34, "entity:hive_storagedesc": 78, "entity:hive_table": 78, "entity:kafka_topic": 1, "entity:storm_bolt": 1, "entity:storm_spout": 1, "entity:storm_topology": 1, "typedef:classification": 9, "typedef:falcon_cluster": 1, "typedef:falcon_feed": 1, "typedef:falcon_feed_creation": 1, "typedef:falcon_feed_replication": 1, "typedef:falcon_process": 1, "typedef:hdfs_path": 1, "typedef:hive_column": 1, "typedef:hive_column_lineage": 1, "typedef:hive_db": 1, "typedef:hive_process": 1, "typedef:hive_storagedesc": 1, "typedef:hive_table": 1, "typedef:kafka_topic": 1, "typedef:storm_bolt": 1, "typedef:storm_spout": 1, "typedef:storm_topology": 1 }, "operationStatus": "SUCCESS", "request": { "itemsToExport": [ { "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": "default@cl1" } } ] }, "timeStamp": 1488194241185, "userName": "hrt_qa" } {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)