Sarath Subramanian created ATLAS-2560:
-----------------------------------------

             Summary: 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
             Fix For: 1.0.0


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