-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68691/
-----------------------------------------------------------
Review request for atlas, Apoorv Naik, Madhan Neethiraj, Nixon Rodrigues, and
Sarath Subramanian.
Bugs: ATLAS-2869
https://issues.apache.org/jira/browse/ATLAS-2869
Repository: atlas
Description
-------
**Approach**
- _HdfsPathCreator_ class creates hdfs_path entity based on parameters.
- _ExportService_ uses the new class.
**CURL**
curl -X POST -u admin:admin -H "Content-Type: application/json" -H
"Cache-Control: no-cache" -d @../docs/export-options.json
http://localhost:21000/api/atlas/admin/export > ../docs/hr.zip
_export-options.json_
```
{
"itemsToExport": [
{ "typeName": "hdfs_path", "uniqueAttributes": { "path":
"/warehouse/hr" }}
],
"options": {
"fetchType": "full",
"matchType": "startsWith",
"skipLineage": "true",
"replicatedTo": "clx",
"changeMarker": 0
}
}
```
Diffs
-----
repository/src/main/java/org/apache/atlas/repository/impexp/ExportService.java
aded67caf
repository/src/main/java/org/apache/atlas/repository/impexp/HdfsPathEntityCreator.java
PRE-CREATION
repository/src/test/java/org/apache/atlas/repository/impexp/HdfsPathEntityCreatorTest.java
PRE-CREATION
Diff: https://reviews.apache.org/r/68691/diff/1/
Testing
-------
**Unit tests**
New tests added.
**Functional tests**
Verified via UI.
Thanks,
Ashutosh Mestry