If RabbitMQ wont start and show the following in the startup logs:
# cat /var/log/rabbitmq/startup_log
BOOT FAILED
===========
If RabbitMQ wont start and show the following in the startup logs:
# cat /var/log/rabbitmq/startup_log
BOOT FAILED
===========
#! /usr/bin/python | |
import sys, re | |
# To use run | |
# | |
# $ nodetool status | ./ntcolour.py | |
# | |
# or to refresh forever use: | |
# |
std::set phoenix;
phoenix.key_comp();
wget http://stedolan.github.io/jq/download/linux64/jq | |
aws ec2 describe-instances --filters "Name=tag:Name,Values=$NAME" \ | |
"Name=instance-state-name,Values=running" \ | |
| jq -r \ | |
".Reservations[] | .Instances[] | .InstanceId" \ | |
aws ec2 describe-volumes --filters \ | |
"Name=status,Values=available" \ | |
| jq -r ".Volumes[] | .VolumeId" \ |
def camel_to_snake(column_name): | |
""" | |
converts a string that is camelCase into snake_case | |
Example: | |
print camel_to_snake("javaLovesCamelCase") | |
> java_loves_camel_case | |
See Also: | |
http://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-camel-case | |
""" | |
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', column_name) |
export JAVA7_HOME=`/usr/libexec/java_home -v 1.7*` | |
export JAVA8_HOME=`/usr/libexec/java_home -v 1.8*` | |
function jdk7 { | |
export JAVA_HOME=$JAVA7_HOME | |
set_path | |
echo "Using Java 7 $JAVA_HOME" | |
} | |
function jdk8 { |
Since many deployments may start out with 3 nodes and so little is known about how to grow a cluster from 3 memebrs to 5 members without losing the existing Quorum, here is an example of how this might be achieved.
In this example, all 5 nodes will be running on the same Vagrant host for the purpose of illustration, running on distinct configurations (ports and data directories) without the actual load of clients.
YMMV. Caveat usufructuarius.
#!/bin/sh | |
# This will allow you to rebalance the Cassandra ring | |
# | |
# $ ./rebalance.sh file_of_hosts | |
RING_SIZE=$(echo "2^127" | bc) | |
HOSTS=$(cat $1 | sed 'N;s/\n/ /') | |
HOST_NUM=$(echo $HOSTS | wc -w) | |
INDEX=0 |
require 'chefspec' | |
describe 'java::default' do | |
let (:chef_run) { ChefSpec::ChefRunner.new.converge('java::default') } | |
it 'should include the openjdk recipe by default' do | |
chef_run.should include_recipe 'java::openjdk' | |
end | |
context 'windows' do | |
let(:chef_run) do |
[ | |
{ | |
"class": "sidebar_container", | |
// $base02: #073642 | |
"layer0.tint": [7,54,66], | |
"layer0.opacity": 1.0, | |
"layer0.draw_center": false, | |
"layer0.inner_margin": [0, 0, 1, 0], | |
"content_margin": [0, 0, 1, 0] |