Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
0.5-incubating
-
None
-
None
-
None
Description
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:
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
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.