Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
minikube version
minikube version: v1.11.0
commit: 57e2f55f47effe9ce396cea42a1e0eb4f611ebbd
helm version
version.BuildInfo{Version:"v3.2.4", GitCommit:"0ad800ef43d3b826f31a5ad8dfbb4fe05d143688", GitTreeState:"clean", GoVersion:"go1.13.12"}
@amolthacker
amolthacker / kafka-perf-test.sh
Last active August 2, 2018 01:05
kafka-perf-test
#!/bin/bash
# env
KAFKA_HOME='/usr/hdp/current/kafka-broker'
KAFKA_BIN="$KAFKA_HOME/bin"
## substitute this with 'k1:6667,k2:6667,k3:6667'
KSERVER='localhost:6667'
KTOPIC_T1='t1'
KTOPIC_T2='t2'
#!/bin/bash
BLUEPRINT_NAME="Data Governance: Apache Atlas, Apache Ranger"
BLUEPRINT_DESCRIPTION="Useful for Data Governance and Security using Apache Atlas and Apache Ranger"
jq --arg bpname "blueprint_name" --arg name ${BLUEPRINT_NAME} '.Blueprints[$bpname] = $name' < ambari-blueprint.json > ambari-blueprint-updated.json
cb blueprint create from-file --file ambari-blueprint-updated.json --name ${BLUEPRINT_NAME} --description ${BLUEPRINT_DESCRIPTION}
#!/bin/bash
AMBARI_SERVER="ambari.example.com"
AMBARI_USER="username"
AMBARI_PWD="password"
AMBARI_CLUSTER_NAME="hdp"
AMBARI_BLUEPRINT_FILENAME="blueprint"
curl -H "X-Requested-By: ${AMBARI_USER}" -X GET -u ${AMBARI_USER}:${AMBARI_PWD} http://${AMBARI_SERVER}:8080/api/v1/clusters/${AMBARI_CLUSTER_NAME}?format=blueprint > ${AMBARI_BLUEPRINT_FILENAME}.json