Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Cloudera Director - execute script before CDH deployed

Cloudera Director - execute script before CDH deployed

Master Collaborator

Hi,

 I am aware of pre and post creation scripts, but they are executed after the cluster has been set up. What I would like to do is run a script AFTER the instances are deployed AND cloudera-manager-agents are running, but BEFORE cloudera manager starts to deploy the CDH and services.

 

Is it possible via the configuration file?

Thanks!

3 REPLIES 3
Highlighted

Re: Cloudera Director - execute script before CDH deployed

Cloudera Employee

Unfortunately there is no hook in configuration file to run script after CM agents are running but before CM deploys CDH.

Do you mind explaining a little more about what you are trying to do, that there might be other ways to achieve it?

Re: Cloudera Director - execute script before CDH deployed

Master Collaborator
For example set correct permissions after impala/hdfs users are created on some local directories

Re: Cloudera Director - execute script before CDH deployed

Cloudera Employee

How about bootstrapScripts?

  bootstrapScripts: [ """#!/bin/sh

# This is an embedded bootstrap script that runs as root and can be used to customize
# the instances immediately after boot and before any other Cloudera Director action

# If the exit code is not zero Cloudera Director will automatically retry

echo 'Hello World!'
exit 0

""" ]

 

Don't have an account?
Coming from Hortonworks? Activate your account here