Skip to main content
benbluetalon
Gold ⭐️
Jan 17, 2018 11:07 PM UTC
Solved

Automating Cloudera Manager Deployment via Path C and Python CM-API

Context

I'm working on setting up a Hadoop cluster consisting of multiple VMs (for testing and development purposes) on a local desktop machine. I have a proof of concept working, where I installed Cloudera Manager manually and then setup the cluster. But now I'd like to automate it.

 

Problem

To automate this process, I need to be able to script the installation of Cloudera Manager, so that it works without manual intervention. Using Cloudera Director doesn't seem to be an option for this use case, because we're not running the cluster on any cloud provider (AWS, Azure, etc.). Is there any way to automate the Cloudera Manager installation for a local desktop?

niranjank
niranjankAnswer
Gold ⭐️
Jan 20, 2018 12:10 AM UTC

To get started, you can install CM using path C: https://www.cloudera.com/documentation/enterprise/5-8-x/topics/cm_ig_install_path_c.html#concept_fbv_2v3_3r__section_z1d_5pm_s5

 

In Cloudera, our internal framework is built on top of the python cm-api. Here is a tutorial to interact with the python bindings: https://cloudera.github.io/cm_api/docs/python-client/. This will help you further in automating security, HA, etc.

 

 

3 replies

srkphani
Silver ⭐️
Jan 18, 2018 8:53 AM UTC

Simple bash script would work. place all the rpms , jdk  in a directory and you can write simple shell script to build the yum repo, install and set the java path and complete the installation CM server. 

Translate
benbluetalon
Gold ⭐️
Jan 18, 2018 7:12 PM UTC

Thanks for the reply. I have tried something similar, but when I run the installer binary (./cloudera-manager-installer.bin), it gives an interactive prompt:

 

Screen Shot 2018-01-18 at 11.08.09 AM (2).png

 

 

 

 

 

 

Is there any way to get this installer to run without user input?

 

 

Translate
niranjank
Gold ⭐️
niranjankAnswer
Gold ⭐️
Jan 20, 2018 12:10 AM UTC

To get started, you can install CM using path C: https://www.cloudera.com/documentation/enterprise/5-8-x/topics/cm_ig_install_path_c.html#concept_fbv_2v3_3r__section_z1d_5pm_s5

 

In Cloudera, our internal framework is built on top of the python cm-api. Here is a tutorial to interact with the python bindings: https://cloudera.github.io/cm_api/docs/python-client/. This will help you further in automating security, HA, etc.

 

 

Translate