You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Sarath Subramanian (JIRA)" <ji...@apache.org> on 2018/04/13 04:38:00 UTC

[jira] [Updated] (ATLAS-2560) Import of atlas data with lineage fails with NoSuchElementException

     [ https://issues.apache.org/jira/browse/ATLAS-2560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sarath Subramanian updated ATLAS-2560:
--------------------------------------
    Description: 
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"}

  was:
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"}#}}


> 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
>            Priority: Major
>             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)