Skip to content

Instantly share code, notes, and snippets.

@jeffjirsa
Last active June 5, 2017 22:58
Show Gist options
  • Save jeffjirsa/a98958bcccb3b2969f316c25aabf61dc to your computer and use it in GitHub Desktop.
Save jeffjirsa/a98958bcccb3b2969f316c25aabf61dc to your computer and use it in GitHub Desktop.
virtual table stuff
Current cluster is now: test
[node1 ERROR] objc[10536]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
[node2 ERROR] objc[10537]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
random
---------------------
2352308556279529416
(1 rows)
id | status | load | schema_version | dc | rack | release_version | rpc_address | severity | net_version | host_id | rpc_ready
------------+-----------------------------+----------+--------------------------------------+-------------+-------+-----------------+-------------+----------+-------------+--------------------------------------+-----------
/127.0.0.1 | NORMAL,-9223372036854775808 | 101543.0 | 92c80c1a-0a16-3244-bdc0-cc92f3d40422 | datacenter1 | rack1 | 3.10-SNAPSHOT | 127.0.0.1 | Severity | 10 | d8000bdd-d6d2-4824-9a5c-48e5d7958738 | true
/127.0.0.2 | NORMAL,0 | 101527.0 | 92c80c1a-0a16-3244-bdc0-cc92f3d40422 | datacenter1 | rack1 | 3.10-SNAPSHOT | 127.0.0.2 | Severity | 10 | e1c8bc62-e370-40ed-a323-688452c2b130 | true
(2 rows)
MLSEA-JJIRSA01:~ jjirsa$ cat ~/cassandra-7622
ccm remove test
ccm create test --install-dir=/Users/jjirsa/Desktop/Dev/cassandra -n 2 -s
sleep 5
echo "create keyspace virtual with replication = {'class': 'SimpleStrategy', 'replication_factor': 1};" | ccm node1 cqlsh
echo "create table using 'RandomVirtualColumnFamily' virtual.random (id int primary key);" | ccm node1 cqlsh
echo "create table using 'RingStateVirtualColumnFamily' virtual.ring (id text primary key, status text, load text, schema_version text, dc text, rack text, release_version text, rpc_address text, severity text, net_version text, host_id text, rpc_ready text); " | ccm node1 cqlsh
echo "select * from virtual.random ; " | ccm node1 cqlsh
echo "select * from virtual.ring ; " | ccm node1 cqlsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment