Skip to main content
lee_yg
Silver ⭐️
March 9, 2022
Solved

How to use cm_api to create a BDR schedule with some given parameters?

https://github.com/GitJason1027/cm_api_programs/blob/main/bdr_build_plan.py
Here is my program to create schedule in BDR function.(CDH professional version)

But some options I cannot find in the cm_api interface,s such as "Permanently Delete", "Copy HDFS File " options. Is someone can tell me how to deal with it ?

 

https://github.com/cloudera/cm_api/blob/master/python/src/cm_api/endpoints/types.py

line 686 class ApiHdfsReplicationArguments

araujo
araujoAnswer
Platinum ⭐️⭐️⭐️
March 9, 2022

Hi @lee_yg ,

 

The "Permanently Delete" option is equivalent to "removeMissingFiles = True" and "skipTrash = True".

The "Copy HDFS File" option is equivalent to "replicateData = True", in the Hive arguments.

 

Cheers,

André

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
-- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.

2 replies

araujo
Platinum ⭐️⭐️⭐️
araujoAnswer
Platinum ⭐️⭐️⭐️
March 9, 2022

Hi @lee_yg ,

 

The "Permanently Delete" option is equivalent to "removeMissingFiles = True" and "skipTrash = True".

The "Copy HDFS File" option is equivalent to "replicateData = True", in the Hive arguments.

 

Cheers,

André

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Translate
-- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.
lee_yg
lee_ygAuthor
Silver ⭐️
March 9, 2022

Thanks Bro😀

Translate