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

Erik Bergenholtz updated ATLAS-271:
-----------------------------------
    Affects Version/s:     (was: 0.6-incubating)
                       0.5-incubating

> Hive data model import fails if there exists any type of name "hive_process"
> ----------------------------------------------------------------------------
>
>                 Key: ATLAS-271
>                 URL: https://issues.apache.org/jira/browse/ATLAS-271
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.5-incubating
>            Reporter: Ayub Khan
>            Assignee: Erik Bergenholtz
>
> Hive data model import fails if there exists a type of name "hive_process"
> 1. Create a trait with typename as hive_process. 
>       For example:
> {noformat}
> curl 'http://localhost:21000/api/atlas/types' -H 'Origin: 
> http://localhost:21000'  -H 'Content-Type: application/json;charset=UTF-8' 
> --data-binary 
> '{"enumTypes":[],"traitTypes":[{"superTypes":[],"typeName":"hive_process","attributeDefinitions":[],"hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.TraitType"}],"structTypes":[],"classTypes":[]}'
>  --compressed
> {noformat}
> 2. Now run import_hive.sh
> Import hive data model fails because atlas thinks that hive data model is 
> already registered.
> This issue is quite possible when the user/admin(mostly unaware of hive data 
> model and its types) is creating tags while bringing atlas.
> hive data model is just an example, this issue can happen with any data model.
> One solution might be to restrict creating types with reserved keywords.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to