[ 
https://issues.apache.org/jira/browse/ATLAS-1939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16082249#comment-16082249
 ] 

Ashutosh Mestry edited comment on ATLAS-1939 at 7/11/17 2:26 PM:
-----------------------------------------------------------------

[~ssainath] The Import API now accepts multi-part data. Please see the updated 
documentation.

This is what will work:
{code:java}
curl -g -X POST -u admin:admin -H "Content-Type: multipart/form-data" -H 
"Cache-Control: no-cache" -F request=@importOptions.json -F 
data=@salesNewTypeAttrs.zip "http://localhost:21000/api/atlas/admin/import";
{code}



was (Author: ashutoshm):
[~ssainath] The Import API now accepts multi-part data. Please see the updated 
documentation.

This is what will work:
{code:java}
curl -g -X POST -u admin:admin -H "Content-Type: multipart/form-data" -H 
"Cache-Control: no-cache" -F data=@salesNewTypeAttrs.zip 
"http://localhost:21000/api/atlas/admin/import";
{code}


> Export/Import Regression : NPE during import
> --------------------------------------------
>
>                 Key: ATLAS-1939
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1939
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.9-incubating
>            Reporter: Sharmadha Sainath
>            Priority: Blocker
>         Attachments: Import_NPE.txt
>
>
> Exported a hive_table and created zip file t5.zip and tried to import in into 
> another cluster using
> {code}
> curl -v -X POST -u admin:admin -H "Content-Type: multipart/form-data" -H 
> "Cache-Control: no-cache" --data-binary @t5.zip 
> "http://host2:21000/api/atlas/admin/import";
> {code}
> Import Request failed with 500 internal server error with NPE in application 
> logs.
> Attached the exception stack trace.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to