Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
eed7817e
Commit
eed7817e
authored
Jan 15, 2020
by
nikhilbonte
Committed by
Ashutosh Mestry
Jan 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3588 Export API- Update documentation
Signed-off-by:
Ashutosh Mestry
<
amestry@cloudera.com
>
parent
f484b205
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
11 deletions
+22
-11
ExportAPI.md
docs/src/documents/Import-Export/ExportAPI.md
+21
-9
ExportHDFSAPI.md
docs/src/documents/Import-Export/ExportHDFSAPI.md
+1
-2
No files found.
docs/src/documents/Import-Export/ExportAPI.md
View file @
eed7817e
...
...
@@ -95,23 +95,36 @@ The _AtlasExportRequest_ below specifies the _fetchType_ as _FULL_. The _matchTy
<SyntaxHighlighter
wrapLines=
{true}
language=
"json"
style=
{theme.dark}
>
{
`{
"itemsToExport": [
{ "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": "accounts@" } }
,
{ "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": "accounts@" } }
],
"options" {
"options"
:
{
"fetchType": "FULL",
"matchType": "startsWith"
}
}`
}
</SyntaxHighlighter>
The _AtlasExportRequest_ below specifies the _guid_ instead of _uniqueAttribues_ to fetch _accounts@cl1_.
<SyntaxHighlighter
wrapLines=
{true}
language=
"json"
style=
{theme.dark}
>
{
`{
"itemsToExport": [
{ "typeName": "hive_db", "guid": "846c5e9c-3ac6-40ju-8289-fb0cebm64783" }
],
"options": {
"fetchType": "FULL",
}
}`
}
</SyntaxHighlighter>
The _AtlasExportRequest_ below specifies the _fetchType_ as _connected_. The _matchType_ option will fetch _accountsReceivable_, _accountsPayable_, etc present in the database.
<SyntaxHighlighter
wrapLines=
{true}
language=
"json"
style=
{theme.dark}
>
{
`{
"itemsToExport": [
{ "typeName": "hive_db", "uniqueAttributes": { "
name": "accounts" } },
{ "typeName": "hive_db", "uniqueAttributes": { "
qualifiedName": "accounts" } }
],
"options" {
"options"
:
{
"fetchType": "CONNECTED",
"matchType": "startsWith"
}
...
...
@@ -165,11 +178,10 @@ Below are sample CURL calls that demonstrate Export of _QuickStart_ database.
<SyntaxHighlighter
wrapLines=
{true}
language=
"shell"
style=
{theme.dark}
>
{
`curl -X POST -u adminuser:password -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"itemsToExport": [
{ "typeName": "DB", "uniqueAttributes": { "name": "Sales" }
{ "typeName": "DB", "uniqueAttributes": { "name": "Reporting" }
{ "typeName": "DB", "uniqueAttributes": { "name": "Logging" }
}
{ "typeName": "DB", "uniqueAttributes": { "name": "Sales" }},
{ "typeName": "DB", "uniqueAttributes": { "name": "Reporting" }},
{ "typeName": "DB", "uniqueAttributes": { "name": "Logging" }}
],
"options": { "full" }
"options": { "f
etchType": "f
ull" }
}' "http://localhost:21000/api/atlas/admin/export" > quickStartDB.zip`
}
</SyntaxHighlighter>
docs/src/documents/Import-Export/ExportHDFSAPI.md
View file @
eed7817e
...
...
@@ -38,8 +38,7 @@ Below are sample CURL calls that performs export operation on the _Sample HDFS S
<SyntaxHighlighter
wrapLines=
{true}
language=
"shell"
style=
{theme.dark}
>
{
`curl -X POST -u adminuser:password -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"itemsToExport": [
{ "typeName": "hdfs_path", "uniqueAttributes": { "name": "FinanceAll" }
}
{ "typeName": "hdfs_path", "uniqueAttributes": { "qualifiedName": "FinanceAll" } }
],
"options": {
"fetchType": "full",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment