Cloudera Director sample code
Shell Python Groovy
Clone or download
bhavanki Mirror server application.properties to public-scripts
The server application.properties file is mirrored into the public-
scripts directory, so that users who don't have a server installation
handy can still refer to it.

(cherry picked from commit 4adaceda2900eb35d7ed32e84de4a91c0af8fe4c)
(cherry picked from commit cb5d02f3477da3ceddaa583aff49c9c2b05d70b4)
Latest commit 625428f Jun 21, 2018
Permalink
Failed to load latest commit information.
application-properties Mirror server application.properties to public-scripts Jun 22, 2018
azure-bootstrap-scripts Adding updated Azure scripts and configs. Oct 21, 2017
azure-dns-scripts Adding updated Azure scripts and configs. Oct 21, 2017
azure-plugin-config Add a RHEL 7.4 image for Azure Jun 18, 2018
cm-script-dependency-installer Addition of initial example post creation scripts. Jun 5, 2015
configs Update CM/CDH defaults to 5.15, Spark 2 to 2.3.0.cloudera2 Jun 18, 2018
dispatch Updating for Director 2.1.0 release Jul 6, 2016
faster-bootstrap Handle XFS resizing. Jun 18, 2018
high-availability Update for Cloudera Director 2.4.0 release Apr 17, 2017
java8 Fix java8-bootstrap-script RPM URL Jun 18, 2018
kerberos Switch to https://archive.cloudera.com Jan 25, 2018
preloaded-ami-builder Update for Cloudera Director 2.6.0 release Oct 11, 2017
sdx Update CM/CDH defaults to 5.15, Spark 2 to 2.3.0.cloudera2 Jun 18, 2018
setup-default Bumping version to 2.8.0 Jun 18, 2018
tls Add configure_cm_tls_level_0.sh Jan 8, 2018
transient-aws Switch to https://archive.cloudera.com Jan 25, 2018
usage-based-billing Replace billing IDs with obvious tokens Jan 31, 2017
util Updated scripts for Cloudera Director 1.5.1 release. Oct 14, 2015
CONTRIBUTING.md Update to latest ICLA and CCLA Jun 18, 2018
Cloudera CCLA_25APR2018.pdf Update to latest ICLA and CCLA Jun 18, 2018
Cloudera ICLA_25APR2018.pdf Update to latest ICLA and CCLA Jun 18, 2018
LICENSE.txt Addition of initial example post creation scripts. Jun 5, 2015
NOTICE Update for Cloudera Director 2.4.0 release Apr 17, 2017
README.md Update to latest ICLA and CCLA Jun 18, 2018
instanceNormalization.md Document the configuration of normalization steps Jan 25, 2018

README.md

Cloudera Director Public Scripts

Contributing Code

See CONTRIBUTING.md.

Overview

Cloudera Director has two points during the cluster creation process where custom made user scripts can be run. Bootstrap scripts are run on an instance on startup, and post-creation scripts are run on the cluster level after a cluster has been successfully created. This repository is a collection of freely available example scripts that Cloudera Director users can use to augment their clusters with advanced functionality.

Please refer to the Cloudera Director documentation for more details on where and how to add scripts.

Bootstrap scripts

There are currently no example bootstrap scripts available.

Post-creation scripts

high-availability

This post-creation script will configure the HDFS service on a cluster for high availability. The included README.md and example cluster configurations explain how to construct a cluster for use with this script.

There are Groovy and Python implementations of this script. We recommend using the Python script because Python is preinstalled on most linux distributions. The Python script depends on the argparse, cm-api, and retrying libraries, which can be installed by the cm-script-dependency-installer post-creation script.

kerberos

This post-creation script will configure a cluster to use Kerberos for authentication. An existing KDC must be supplied; this is demonstrated in the aws.reference.conf that comes with the Cloudera Director client.

The script depends on the argparse, cm-api, and retrying libraries, which can be installed by the cm-script-dependency-installer post-creation script.

cm-script-dependency-installer

This post-creation script is meant to be run before either high-availability or kerberos. It will install the necessary Python dependencies required for both scripts.

Additional utility scripts

The util directory contains additional utility scripts.