Skip to content

Instantly share code, notes, and snippets.

import boto3
connection = boto3.client(
'emr',
region_name='us-east-1',
aws_access_key_id='YOUR ACCESS KEY',
aws_secret_access_key='YOUR SECRET KEY',
)
cluster_id = connection.run_job_flow(
@tdyn
tdyn / hot-cloud-swap-script.md
Last active August 9, 2019 21:05 — forked from jenschelkopf/hot-cloud-swap-script.md
Cheat Sheet for the FoundationDB 'Hot Cloud Swap' Screencast

Cheat Sheet for the FoundationDB 'Hot Cloud Swap' Screencast

Initial Cluster Setup on Digital Ocean

Grab the client and server packages from the FoundationDB website

ansible -i inventory digital_ocean -a "wget https://foundationdb.com/downloads/f-nbxofdxnoxocd/I_accept_the_FoundationDB_Community_License_Agreement/key-value-store/2.0.9/foundationdb-clients_2.0.9-1_amd64.deb https://foundationdb.com/downloads/f-nbxofdxnoxocd/I_accept_the_FoundationDB_Community_License_Agreement/key-value-store/2.0.9/foundationdb-server_2.0.9-1_amd64.deb"

Install the client and server packages

@tdyn
tdyn / benchmark-commands.txt
Created July 23, 2019 18:16 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196