Question : You have setup of virtual node (vnode) to avoid HotSpot issue in Cassandra cluster, what will be the correct in this case
A. You donat need to add new node in the cluster B. As soon as you add new node in cluster, it's going to be able to take ranges of data from every node C. It will re-partition all the data after adding new node D. You can assign token more efficiently to each node in cluster
1. A,B 2. B,C 3. C,D 4. A,D 5. B,D
Correct Answer : Get Lastest Questions and Answer : Explanation: When you add new node to the Cluster, it will take ranges of data from every node, so this is a much more even way to get that data. It is going to re-partition data. and all the other nodes will give some data to be loaded in new node and that node is able to come online faster, and also gives us the ability to add a single node to a lopsided cluster or one at a time, which is a lot easier as an operator to make work. If you have to assign tokens and make up the tokens, that can be a lot more work, and sometimes you don't get it right. With virtual nodes, it's much easier.
Within a cluster, virtual nodes are randomly selected and non-contiguous. The placement of a row is determined by the hash of the partition key within many smaller partition ranges belonging to each node.
Question : You do configuration in Cassandra.yaml file to setup number of tokens in your cluster. 1. True 2. False
Correct Answer : Get Lastest Questions and Answer : Explanation: We have a Cassandra yaml setting for how many tokens you want to set up. Set the number of tokens on each node in your cluster with the num_tokens parameter in the cassandra.yaml file.
Question : You already have an existing Cassandra cluster setup, having single token node setup. How, would you convert this setup to vnode setup?
1. It cannot be done, you have to create new Cluster altogether
2. you can configure another datacenter configured with vnodes already enabled and let Cassandra automatic mechanisms distribute the existing data into the new nodes.
3. you can configure another Cassandra cluster configured with vnodes already enabled and let Cassandra automatic mechanisms distribute the existing data into the new Cluster.
4. 2 and 3
Correct Answer : Get Lastest Questions and Answer : Explanation: You cannot directly convert a single-token nodes to a vnode. However, you can configure another datacenter configured with vnodes already enabled and let Cassandra automatic mechanisms distribute the existing data into the new nodes. This method has the least impact on performance.
Procedure
Add a new datacenter to the cluster. Once the new datacenter with vnodes enabled is up, switch your clients to use the new datacenter. Run a full repair with nodetool repair. This step ensures that after you move the client to the new datacenter that any previous writes are added to the new datacenter and that nothing else, such as hints, is dropped when you remove the old datacenter.
Update your schema to no longer reference the old datacenter. Remove the old datacenter from the cluster.
2. UPDATE TRINING_COURSE SET LOCATION = LOCATION + {'2017-9-22 09:00' : 'MUMBAI'} WHERE id = 62c36092-82a1-3a00-93d1-46196ee77204 AND course_sequence = 4;