Support Questions
Find answers, ask questions, and share your expertise

How to upload hundred's of tag at one shot in Apache Atlas??,How to upload hundred's of tag in Apache Atlas ?

Highlighted

How to upload hundred's of tag at one shot in Apache Atlas??,How to upload hundred's of tag in Apache Atlas ?

I have a requirement where i need to create 100 of tags in Apache Atlas. Is there any provision which can be used to upload csv file in Apache Atlas ??

Thanks in Advance,

Subash

,

I have a requirement where i need to create 100 of tags, Are there any provision in Atlas to upload csv file ??

Thanks,

Subash

4 REPLIES 4
Highlighted

Re: How to upload hundred's of tag at one shot in Apache Atlas??,How to upload hundred's of tag in Apache Atlas ?

@subash sharma

This can be done using REST API for creating types.

http://atlas.incubator.apache.org/api/resource_TypesResource.html

Please refer to createTraits section in Atlas techinical user guide(http://atlas.incubator.apache.org/AtlasTechnicalUserGuide.pdf).

Highlighted

Re: How to upload hundred's of tag at one shot in Apache Atlas??,How to upload hundred's of tag in Apache Atlas ?

Expert Contributor

@subash sharma

There is no provision to upload CSV or any file to Atlas. For your requirement,you may write a shell script to loop 100 times with curl to create 100 tags :

curl -u admin:admin -H "Content-Type: application/json" -X POST -d '{"enumTypes":[],"traitTypes":[{"attributeDefinitions":[],"typeName":"tag_name","typeDescription":"","superTypes":[],"hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.TraitType"}],"structTypes":[],"classTypes":[]}' http://atlas_host:port/api/atlas/types

Also, currently, only one tag can be added to Atlas at a time.

Highlighted

Re: How to upload hundred's of tag at one shot in Apache Atlas??,How to upload hundred's of tag in Apache Atlas ?

Thanks @ssainath and @Ayub Khan !!!

Highlighted

Re: How to upload hundred's of tag at one shot in Apache Atlas??,How to upload hundred's of tag in Apache Atlas ?

@subash sharma If this query is resolved, please accept the answer to close the loop.