Re: Cassandra 311x broken on Debian docker images

2020-05-18 Thread Robert Snakard
Thanks James for helping On Mon, May 18, 2020 at 9:14 PM Robert Snakard wrote: > Solved. > > The user command `free` is not installed by default on the debian docker > images. Running `apt-get install procps` installs the `free` command. This > fixes the issue. > > Unsure what changed within the

Re: Cassandra 311x broken on Debian docker images

2020-05-18 Thread Robert Snakard
Solved. The user command `free` is not installed by default on the debian docker images. Running `apt-get install procps` installs the `free` command. This fixes the issue. Unsure what changed within the last month to break this. Do I submit a request to add procps to the list of Cassandra debian

Re: Cassandra 311x broken on Debian docker images

2020-05-18 Thread Robert Snakard
Manually ran the start-stop-daemon without the quiet flag. Got some output # start-stop-daemon -S -c cassandra -a /usr/sbin/cassandra -p /run/cassandra/cassandra.pid -- -p /run/cassandra/cassandra.pid -H /var/log/cassandra/java_.hprof -E /var/log/cassandra/hs_err_.log => /usr/sbin/cassand

Re: Cassandra 311x broken on Debian docker images

2020-05-18 Thread Robert Snakard
Apologies for the hyperlink On Mon, May 18, 2020 at 8:47 PM Robert Snakard wrote: > for dir in $(find / -name cassandra -type d); do > find $dir -type f > done > > > => > > /usr/share/doc/cassandra/copyright > > > > /usr/share/cassandra/cassandra.in.sh > > > > /usr/share/cassandra/*.jar > >

Re: Cassandra 311x broken on Debian docker images

2020-05-18 Thread Robert Snakard
for dir in $(find / -name cassandra -type d); do find $dir -type f done => /usr/share/doc/cassandra/copyright /usr/share/cassandra/cassandra.in.sh /usr/share/cassandra/*.jar /etc/cassandra/triggers/README.txt /etc/cassandra/jvm.options /etc/cassandra/hotspot_compiler /etc/cassandra/ca

Re: Cassandra 311x broken on Debian docker images

2020-05-18 Thread James Shaw
go to configure directory, i.e. /var/lib/cassandra/conf, look logback.xml, whether configured logs in other directory? Also, do you see output.log, debug.log in /var/log/cassandra/? or you may use linux find command to search. On Mon, May 18, 2020 at 10:51 PM Robert Snakard wrote: > docker l

Re: Cassandra 311x broken on Debian docker images

2020-05-18 Thread Robert Snakard
docker logs just outputs stderr and stdout. It doesn't show anything more than what I put in top email On Mon, May 18, 2020 at 7:42 PM James Shaw wrote: > docker logs ... see any error in docker/container logs ? > > On Mon, May 18, 2020 at 10:27 PM Robert Snakard > wrote: > >> # cat /var/log/ca

Re: Cassandra 311x broken on Debian docker images

2020-05-18 Thread James Shaw
docker logs ... see any error in docker/container logs ? On Mon, May 18, 2020 at 10:27 PM Robert Snakard wrote: > # cat /var/log/cassandra/system.log > => cat: system.log: No such file or directory > > I've also checked other possible locations. Since this is occurring before > startup no logs

Re: TEST Cluster corrupt after removenode. how to restore

2020-05-18 Thread James Shaw
Do you mean that you want to fix sstable table corrupt error and don't mind the testing data ? You may run nodetool scrub or nodetool upgradesstable -a( -a is re-write to current version). Thanks, James On Mon, May 18, 2020 at 12:54 PM Leena Ghatpande wrote: > Running cassandra 3.7 > ou

Re: Cassandra 311x broken on Debian docker images

2020-05-18 Thread Robert Snakard
# cat /var/log/cassandra/system.log => cat: system.log: No such file or directory I've also checked other possible locations. Since this is occurring before startup no logs are created On Mon, May 18, 2020 at 7:03 PM Erick Ramirez wrote: > Can you inspect the C* system.log? It might give clues

Re: TEST Cluster corrupt after removenode. how to restore

2020-05-18 Thread Erick Ramirez
On face value, it looks to me that your recovery approach is sound (but of course, the devil is in the details). If you're getting inconsistent results, try running the same query in cqlsh with CONSISTENCY ALL (to force a read-repair from both replicas). If you get the expected result, that would i

Re: Cassandra 311x broken on Debian docker images

2020-05-18 Thread Erick Ramirez
Can you inspect the C* system.log? It might give clues for the startup or it might point to another problem. Cheers!

Cassandra 311x broken on Debian docker images

2020-05-18 Thread Robert Snakard
Cassandra is failing to start with the error [FAIL] could not access pidfile for Cassandra ... failed! Steps to reproduce $ docker run -it debian: bash # apt-get update && apt-get install wget gnupg # echo "deb http://www.apache.org/dist/cassandra/debian 311x main" > /etc/apt/sources.list.d/

TEST Cluster corrupt after removenode. how to restore

2020-05-18 Thread Leena Ghatpande
Running cassandra 3.7 our TEST cluster has 6 nodes, 3 in each data center replication factor 2 for keyspaces. we added 1 new node in each data center for testing making it 8 node cluster. We decided to remove the 2 new nodes from cluster, but instead of decommission, the admin just deleted the

Re: using() not able to switch keyspace on the fly.

2020-05-18 Thread Alan Boudreault
You can use `DataModel.objects.using().create()` or use another model for this purpose. See the ContextQuery utility: https://docs.datastax.com/en/developer/python-driver/3.23/cqlengine/connections/#context-manager https://docs.datastax.com/en/developer/python-driver/3.23/api/cassandra/cqlengine/q