Created on
09-23-2019
07:22 AM
- last edited on
09-23-2019
08:28 PM
by
VidyaSargur
We are using CDH 5.15 and would like to update the Custom Metadata for the existing entities which can be then seen in Cloudera Navigator. One way is to use Cloudera Navigator console and update but since we have too many of them would like to see if there is other way around to update the custom metadata for all existing entities at once. Any suggestions would be helpful here.
Created 09-23-2019 10:34 AM
Hi @NickBari ,
Depends on what kind of custom metadata you want to update from Cloudera Navigator, you may consider using the Cloudera Navigator APIs to do this for you.
Documentation and a brief tutorial for the Cloudera Navigator APIs are available on the same node of the cluster that runs the Navigator Metadata Server role:
http://fqdn-n.example.com:port/api-console/tutorial.html
You can refer to below doc for more details:
https://www.cloudera.com/documentation/enterprise/5-15-x/topics/navigator_data_mgmt.html
Thanks and hope this helps!
Li
Li Wang, Technical Resolution Manager
Created 09-24-2019 07:15 AM
Thank you @lwang for your response. I went through the documentation and would like to explore the SDK option. I saw that there is link to the github directly, is there any tutorial or video on how SDK can be used to update the Custom Metadata?
Created 09-24-2019 09:51 AM
Hi @NickBari ,
Have you explored the REST APIs? Majority of times using REST APIs would be able to meet the requirement. navigator-sdk is a public tool and the examples are in github too. For example below code is for incremental extraction of metadata in Java:
Thanks and hope this helps,
Li
Li Wang, Technical Resolution Manager
Created 09-24-2019 10:48 AM
Thank you @lwang . Haven't much explored about REST API's but will surely look for. Also will see the navigator sdk in detail.
Created 09-24-2019 11:23 AM
Hi @NickBari ,
You are very welcome! Have fun coding.
Thanks,
Li
Li Wang, Technical Resolution Manager