Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

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

avatar
New Contributor

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

1 ACCEPTED SOLUTION

avatar
Super Guru

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.

View solution in original post

2 REPLIES 2

avatar
Super Guru

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.

avatar
New Contributor

Thanks Bro😀