You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Madhan Neethiraj (Jira)" <ji...@apache.org> on 2020/02/29 23:37:00 UTC
[jira] [Resolved] (ATLAS-271) Hive data model import fails if there
exists any type of name "hive_process"
[ https://issues.apache.org/jira/browse/ATLAS-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Madhan Neethiraj resolved ATLAS-271.
------------------------------------
Resolution: Cannot Reproduce
> 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 Pathan
> Assignee: Erik Bergenholtz
> Priority: Major
>
> 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
(v8.3.4#803005)