Skip to content

Instantly share code, notes, and snippets.

@abajwa-hw
abajwa-hw / deploy_latest_hdp.md
Last active September 23, 2021 23:03
Automation to deploy latest HDP

Automated deployment of fresh cluster via blueprints (using ambari-bootstrap)

  • Note: You will now need to set the following env vars with your Cloudera paywall credentials: username paywall_password

  • Bring up 4 VMs imaged with RHEL/CentOS 6.x (e.g. node1-4 in this case)

  • On non-ambari nodes (e.g. nodes 2-4), install ambari-agents and point them to ambari node (e.g. node1 in this case)

export ambari_server=node1
export ambari_version=2.7.5.0
export username=myuser
@nolanlawson
nolanlawson / protips.js
Last active August 22, 2024 14:19
Promise protips - stuff I wish I had known when I started with Promises
// Promise.all is good for executing many promises at once
Promise.all([
promise1,
promise2
]);
// Promise.resolve is good for wrapping synchronous code
Promise.resolve().then(function () {
if (somethingIsNotRight()) {
throw new Error("I will be rejected asynchronously!");