Skip to content

Instantly share code, notes, and snippets.

View mambocab's full-sized avatar

Jim Witschey mambocab

  • Rapid7
  • Reston, VA
  • 11:49 (UTC -04:00)
View GitHub Profile
@mambocab
mambocab / gist:1ff32e4132d1578803a4
Created October 28, 2015 19:11
cassandra-env prepend
(
wget https://github.com/jemalloc/jemalloc/releases/download/4.0.3/jemalloc-4.0.3.tar.bz2 -O /tmp/jemalloc-4.0.3.tar.bz2
cd /tmp/
tar -xjf /tmp/jemalloc-4.0.3.tar.bz2
cd /tmp/jemalloc-4.0.3
./configure && make
)
export CASSANDRA_LIBJEMALLOC='/tmp/jemalloc-4.0.3/lib/libjemalloc.so'
gen-cql3-grammar:
[echo] Building Grammar /home/ryan/fab/stress/df4f316db8f2953291d926a072e19a751b3d7eae/src/java/org/apache/cassandra/cql3/Cql.g ...
build-project:
[echo] apache-cassandra: /home/ryan/fab/stress/df4f316db8f2953291d926a072e19a751b3d7eae/build.xml
[javac] Compiling 45 source files to /home/ryan/fab/stress/df4f316db8f2953291d926a072e19a751b3d7eae/build/classes/thrift
[javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.openjdk.jmh.generators.BenchmarkProcessor' less than -source '1.8'
[javac] Note: /home/ryan/fab/stress/df4f316db8f2953291d926a072e19a751b3d7eae/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
(cstar_te)❯ python udf_failure.py [93/1861]
TEST PATH: /tmp/dtest-JU3YGF
http://git-wip-us.apache.org/repos/asf/cassandra.git git:cassandra-2.2
stopping node 0
stopping node 1
stopping node 2
stopping node 3
upgrading and starting node 0
http://git-wip-us.apache.org/repos/asf/cassandra.git git:cassandra-3.0
upgrading and starting node 1
build-project:
[echo] apache-cassandra: /home/ryan/fab/stress/b512f07478c936467cbecf7892b5598900bb7d10/build.xml
[javac] Compiling 45 source files to /home/ryan/fab/stress/b512f07478c936467cbecf7892b5598900bb7d10/build/classes/thrift
[javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.openjdk.jmh.generators.BenchmarkProcessor' less than -source '1.8'
[javac] Note: /home/ryan/fab/stress/b512f07478c936467cbecf7892b5598900bb7d10/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning
[javac] Compiling 1169 source files to /home/ryan/fab/stress/b512f07478c936467cbecf7892b5598900bb7d10/build/classes/main
INFO:benchmark:Started cassandra on 3 nodes with git SHA: a66863861136a29dc04d7bc3b319f9f8fae0f49f
INFO:stress_compare:Running stress operation : write n=3M -rate threads=10 -col n=FIXED\(1000\) -node blade-11-8a,blade-11-7a,blade-11-6a ...
INFO:benchmark:Running stress from '/home/ryan/fab/stress/default/tools/bin/cassandra-stress' : write n=3M -rate threads=10 -col n=FIXED\(1000\) -node blade-11-8a,blade-11-7a,blade-11-6a
INFO 16:43:00 Did not find Netty's native epoll transport in the classpath, defaulting to NIO.
Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: No enum constant com.datastax.driver.core.ColumnMetadata.Raw.Kind.CLUSTERING
at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:198)
at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesNative(SettingsSchema.java:79)
at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:69)
at org.apache.cassandra.stress.
def test_test(self):
self.prepare()
self.node2.stop()
self.cursor1.execute("""
INSERT INTO ttl_table (key, col1) VALUES (1, 1);
""")
self.cursor1.execute("""
INSERT INTO ttl_table (key, col1) VALUES (2, 2);
""")
http://cstar.datastax.com/tests/id/1811a45c-19d5-11e5-83af-42010af0688f
curl https://github.com/msysgit/msysgit/releases/download/Git-1.9.5-preview20150319/Git-1.9.5-preview20150319.exe -OutFile install-git.exe
.\install-git.exeA
go to https://www.python.org/downloads/ and click around until it's in there
@mambocab
mambocab / gist:f5b3679208a3a4f97d7b
Created June 8, 2015 13:27
durable_writes complaint
(06:13:50 PM) Fredderf: Might have found a bug in 2.1.3 and same behaviour in 2.1.5 but have only debugged 2.1.3. Setting durable_writes on a keyspace is only applied after a restart. When mutations for a column family is about to be applied, the cached instance of the keyspace metadata is read. But the schema mutation for durable_writes hasn't been applied to this cached instance. Anyone knows if this is a known issue?
(06:15:07 PM) snair: Adding a DC cayused Cannot achiecve conistency level one
(06:15:10 PM) snair: eon all nodes
(06:15:12 PM) snair: oplease helpo
(06:15:15 PM) snair: production
(06:15:29 PM) snair: stopped the 3 node cassandra cluster
(06:23:08 PM) weiz2: rcoli: thobbs: according to this http://docs.datastax.com/en/cassandra/2.0/cassandra/tools/toolsDecommission.html, Descriptionhttp://docs.datastax.com/en/cassandra/2.0/cassandra/tools/toolsDecommission.html?scroll=toolsDecommission__description_unique_6
(06:23:08 PM) weiz2: Causes a live node to decommission itself, streaming its data to t
#!/usr/bin/env sh
usage() { echo "usage: `basename $0` <yo username>" ; }
if [ -z "$YO_API_KEY" ] ; then
echo "No YO_API_KEY in environment."
echo "Get a key from https://dev.justyo.co/"
usage
exit 1
fi