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

Sarath Subramanian commented on ATLAS-2560:
-------------------------------------------

+1, Thanks for the patch [~ashutoshm]. 

 

> Import of atlas data with lineage fails with NoSuchElementException
> -------------------------------------------------------------------
>
>                 Key: ATLAS-2560
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2560
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 1.0.0
>            Reporter: Sarath Subramanian
>            Assignee: Ashutosh Mestry
>            Priority: Major
>             Fix For: 1.0.0
>
>         Attachments: ATLAS-2560-Import-with-relationship-information.patch, 
> applicaton.log, exportLineageData.zip
>
>
> Created a hive_table and view from beeline client:
> {{create database hr; use hr;}}
> {{create table employees(name string, age int);}}
> {{create view us_employees as select * from employees;}}
>  
> *Exported the data using:*
> {{curl -X POST -u admin:admin -H "Content-Type: application/json" -d 
> '{"itemsToExport":[\\{"typeName":"hive_db","uniqueAttributes":{"name":"hr"}}],"options":{"fetchType":"FULL"}}'
>  "http://localhost:21000/api/atlas/admin/export"; > /root/exportLineageData.zip
> *Flushed the DB and tried to import back the data exported using:*
> {{curl -X POST -u admin:admin -H "Content-Type: multipart/form-data" -F 
> data=@/root/exportLineageData.zip 
> "http://localhost:21000/api/atlas/admin/import"}}
>  
> Import failed with the following error:
> {"errorCode":"ATLAS-500-00-001","errorMessage":"org.apache.atlas.exception.AtlasBaseException:
>  
> java.util.NoSuchElementException","errorCause":"java.util.NoSuchElementException"}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to