- Change
cassandra-rackdc.properties
to: - dc=datacenter1
- rack=rack1
- Change cassandra.yaml snitch:
GossipingPropertyFileSnitch
- Rolling restart of nodes:
nodetool flush && nodetool drain && service cassandra stop
- Update application specific keyspaces to use NetworkTopology w/ only existing DC
ALTER KEYSPACE {keyspace} WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': '3'} AND durable_writes = true;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[s3] | |
#s3 bucket name | |
bucket_name = my_backups | |
download_threads = 6 | |
# other s3 access is defined in the default aws cli settings file | |
[opscenter] | |
backup_job_uuid = # get this from s3 bucket | |
[node] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import re | |
import sys | |
REGEX_KEYSPACE = re.compile(r'^Keyspace: (.*)|^Keyspace : (.*)') | |
REGEX_TABLE = re.compile(r'^\t\tTable: (.*)') | |
REGEX_READ_CNT = re.compile(r'^\t\tLocal read count: (.*)') | |
REGEX_WRITE_CNT = re.compile(r'^\t\tLocal write count: (.*)') | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################################################## | |
### ### | |
### Install Script to install DSE 5.0 on Ubuntu or CentOS ### | |
### created by Brad Vernon [email protected] ### | |
### ### | |
######################################################################## | |
# AWS Instance gathering, do not delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EPOCH_START=1472838 | |
JBOD_DRIVES=/app/cassandra/datastax/dse-data* | |
SNAPSHOT_DATE="Sep 2" | |
SNAPSHOT_TIME="10:4" | |
## don't edit below | |
declare -A refresh_tables | |
SNAPS=$(ls -R $JBOD_DRIVES | grep $EPOCH_START | grep "app/") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nmap -p9042 10.200.20.0/24 --open |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import * | |
from fabric.api import env | |
import time | |
import re | |
# env.hosts = ['10.200.20.146', '10.200.20.156', '10.200.20.168', '10.200.20.154'] | |
env.hosts = ['10.200.20.158', '10.200.20.146', '10.200.20.156', '10.200.20.168', '10.200.20.154'] | |
env.user = 'datastax' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SNAPS=$(ls -R /app/cassandra/datastax/dse-data* | grep 1469291 | grep app) | |
while read -r line; do | |
MOVE_FROM=$(echo $line | awk -F":" '{print $1}') | |
#echo "MOVE_FROM = $MOVE_FROM" | |
TABLE_NAME=$(echo $line | awk -F"/" '{print $7}' | awk -F"-" '{print $1}') | |
#echo "TABLENAME = $TABLE_NAME" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'F-14D Super Tomcat' | Grumman | 1987 | 2.34 | |
---|---|---|---|---|
'MiG-23 Flogger' | Russian-made | 1964 | 2.35 | |
'Su-27 Flanker' | U.S.S.R. | 1981 | 2.35 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File location /usr/share/dse/resources/tomcat/conf/server.xml or /dse/resources/tomcat/conf/server.xml | |
# Find | |
<Host name="localhost" appBase="../solr/web"... | |
#insert below XML node | |
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="/tmp/" | |
prefix="solr_access." suffix=".log" pattern="%h %u %t "%r" %s %B %D %v" | |
resolveHosts="false" rotatable="true" fileDateFormat="yyyy-MM-dd"/> |
NewerOlder