Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bmwh on github.
  • I am reptar20c (https://keybase.io/reptar20c) on keybase.
  • I have a public key ASAMptyFKzUjJM8kPsHstdsLmBHIb3uXEzDavyqDs9CqIgo

To claim this, I am signing this object:

#!/usr/bin/python
# impala-queries.py
# List, query and terminate in-flight Impala queries through the CM API
# -----------------------------------------------------------------------
# Copyright (C) 2015 Cloudera and Ben White
import urllib2, json, sys
# Cloudera Manager credentials
#!/bin/bash
# shutdown.sh
# Cleanly shut down CDH and Cloudera Manager via the REST API
# -----------------------------------------------------------------------
# Cloudera Manager credentials
USERNAME=admin
PASSWORD=admin
@bmwh
bmwh / restart-cm-service.sh
Last active December 1, 2023 02:59
Restart a managed service with the Cloudera Manager REST API
#!/bin/bash
# restart-cm-service.sh
# Restart a Cloudera-Manager-managed service via the REST API
# -----------------------------------------------------------------------
# Copyright (C) 2014 Cloudera and Ben White
# Cloudera Manager credentials
USERNAME=admin
PASSWORD=admin