cassandra-top | Cassandra top command to monitor cluster without Datastax
kandi X-RAY | cassandra-top Summary
kandi X-RAY | cassandra-top Summary
The Cassandra top command, cass_top, is a friendly UI for monitoring clusters, similar to the top command, and shows menus to build and run nodetool commands.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cassandra-top
cassandra-top Key Features
cassandra-top Examples and Code Snippets
Community Discussions
Trending Discussions on cassandra-top
QUESTION
I have a Cassandra cluster with two nodes with simple replication strategy.
Everything worked well until one of nodes crashed. I recovered the crashed node by cloning the remaining node virtual machine (so we cloned a file system), and updated the listening and RPC address.
Now I keep getting the following strange error.
When I am running each single node, everything is working well. But when I am starting the second node, the first one falls back with an error!
...ANSWER
Answered 2020-Jul-21 at 09:32If you cloned the virtual machine with all data, then you have all data of the first node, including the node's ID. To solve this problem, shutdown the 2nd node, delete all data from the data_file_directories
and commit logs, leave only the first node as a seed node, and then start the 2nd node, so it will join the cluster as normal, and after this process finished, update the seed list (if you leave the 2nd node in the seed list, it won't join the cluster, but bootstrap a new cluster).
QUESTION
After cassandra install via sudo apt install -y cassandra
, cassandra is running, but I have not yet configured cassandra.yaml
and cassandra-topology.properties
. Once I configure them cassandra won't start because Cannot start node if snitch's data center (0) differs from previous data center (datacenter1)
ANSWER
Answered 2019-Nov-26 at 17:15Assuming that you don't care about the data stored, you can fix that by deleting everything in your data_file_directories
. If you're not setting that, you'll find it at $CASSANDRA_HOME/data/data
.
Basically, the cluster metadata gets written in the system
keyspace, which uses the local replication strategy (system
is unique on each node). At start time, Cassandra verifies the stored metadata vs. the config properties being passed. When you change something about the node, Cassandra will throw an error on specific properties like cluster_name
, dc
, rack
(and possibly a few others) when they don't match what's on disk.
tl;dr;
You probably only need to delete only the data for the system
keyspace.
But another option, would be to uncomment and set data_file_directories
. Then the new node's system metadata would be written there, and the node would start.
QUESTION
The latest cassandra
was downloaded from the website. I am following the directions at https://medium.com/@areeves9/cassandras-gossip-on-os-x-single-node-installation-of-apache-cassandra-on-mac-634e6729fad6
Cassandra is installed:
...ANSWER
Answered 2019-Mar-11 at 05:38Set a system variable like this:
System.setProperty("cassandra.config", "file:////cassandra.yaml");
QUESTION
I'm inserting data in Cassandra via C++. I've got 2 datacentres and total 3 nodes distributed among the 2 datacentres(dc1 and dc2). As I'm doing some experiments, so I've stopped Cassandra on 2 of the nodes. Now when I try to write data into the one remaining node, I get errors like "no hosts available". Since in the C++ program, I've not mentioned any consistency for the write statement, then why is it not working. I had read that the default write consistency was local one, therefore I should be able to write data even when only one out of 3 nodes is up.
dc1 has 2 nodes and dc 2 has 1 node. replication strategy: network topology, dc1: 2, dc2: 1 Cassandra: 3.0.14 RHEL 6
Edit: The problem was sorted out after I changed 2 things and restarted my cluster: 1. I configured the cassandra-topology.properties. Initially it was not set with the right values. 2. I synced the time between the 3 nodes. I don't know which one(if not both) solved the problem.
...ANSWER
Answered 2018-Jan-09 at 08:25If the keyspace you are writing to is set with RF > 1, than it means the data must be written in more than 1 replica (more than 1 node) and since only 1 node remains active, that does not satisfy the RF settings.
I assume this is the reason for the error you see.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cassandra-top
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page