----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/57055/ -----------------------------------------------------------
(Updated Feb. 27, 2017, 1:56 a.m.) Review request for atlas and Madhan Neethiraj. Changes ------- Support for additional clauses. See description for details. Bugs: ATLAS-1503 https://issues.apache.org/jira/browse/ATLAS-1503 Repository: atlas Description (updated) ------- *CURL* ``` curl -X POST -u admin:admin -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{ "itemsToExport": [ { "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": "default@cl1" } }, { "typeName": "hdfs_path", "uniqueAttributes": { "path": "/apps/hive/warehouse/" } } ], "options": null } ' "http://localhost:21000/api/atlas/admin/export" > ../docs/DefaultDB-HDFS.zip ``` Export all databases whose name starts with “def”: { "itemsToExport": [ { "typeName": "hive_db", "uniqueAttributes": { "name": "def" } } ], “options”: { “matchType”:”startsWith” } } Export all hive_columns whose name contains “ssn”: { "itemsToExport": [ { "typeName": "hive_column", "uniqueAttributes": { "name": "ssn" } } ], “options”: { “matchType”:”contains” } } Export all hdfs_path whose name ends with “.txt”: { "itemsToExport": [ { "typeName": "hdfs_path ", "uniqueAttributes": { "name": ".txt" } } ], “options”: { “matchType”:”endsWith” } } Diffs (updated) ----- intg/src/main/java/org/apache/atlas/AtlasErrorCode.java 542b659 repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityChangeNotifier.java feada34 repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityStoreV1.java 587f3c7 webapp/pom.xml a431e02 webapp/src/main/java/org/apache/atlas/web/resources/ExportService.java bbd48bc webapp/src/main/java/org/apache/atlas/web/resources/ZipSource.java e69a139 Diff: https://reviews.apache.org/r/57055/diff/ Testing ------- Steps: - Use 'Create Entity' from Atlas Web UI. - Create 2 HDFS paths: - /apps/hive/warehouse/largedb.db - /apps/hive/warehouse/largedb.db/testtable_c_9 - Have some hive_db present as well. - Run export with the parameters specified above (see description section for curl). Please see attached *.zip* file for reference. File Attachments ---------------- hive_db and hdfs_path exported https://reviews.apache.org/media/uploaded/files/2017/02/24/efeb095d-eb14-41a3-b5c4-04be47a2c61e__DefaultDB-HDFS.zip Thanks, Ashutosh Mestry