Cassandra VM by Anarion Technologies
Apache Cassandra is a highly scalable, open-source NoSQL database system designed to manage large volumes of data across multiple commodity servers without a single point of failure. Developed initially by Facebook and later released as an Apache project, Cassandra is renowned for its robustness and capacity to handle vast amounts of unstructured data.
One of Cassandra’s core strengths lies in its distributed architecture, which ensures high availability and fault tolerance. The system is designed to be decentralized, with no master node; all nodes in the cluster are equal, which eliminates bottlenecks and single points of failure. This architecture allows for continuous operation even when individual nodes fail, ensuring data is always accessible.
Cassandra’s scalability is another key feature. It can handle petabytes of data and thousands of concurrent operations per second. Adding more nodes to a Cassandra cluster can be done seamlessly, with no downtime, providing linear scalability. This makes it an excellent choice for applications that expect rapid growth in data volume and traffic.
The database uses a column-family data model, which is different from traditional relational databases. This model organizes data into rows and columns, where columns are grouped into sets called column families. This structure is highly flexible, allowing for the efficient handling of various data types and making it easier to store and query large datasets.
Cassandra’s tunable consistency levels are a notable feature, offering a balance between consistency and performance based on the application’s needs. Users can configure the system to prioritize strong consistency or high availability, depending on their requirements. This flexibility is crucial for applications where performance and responsiveness are critical.
To subscribe to this product from Azure Marketplace and initiate an instance using the Azure compute service, follow these steps:
1. Navigate to Azure Marketplace and subscribe to the desired product.
2. Search for “virtual machines” and select “Virtual machines” under Services.
3. Click on “Add” in the Virtual machines page, which will lead you to the Create a virtual machine page.
4. In the Basics tab:
- Ensure the correct subscription is chosen under Project details.
- Opt for creating a new resource group by selecting “Create new resource group” and name it as “myResourceGroup.”
5. Under Instance details:
- Enter “myVM” as the Virtual machine name.
- Choose “East US” as the Region.
- Select “Ubuntu 18.04 LTS” as the Image.
- Leave other settings as default.
6. For Administrator account:
- Pick “SSH public key.”
- Provide your user name and paste your public key, ensuring no leading or trailing white spaces.
7. Under Inbound port rules > Public inbound ports:
- Choose “Allow selected ports.”
- Select “SSH (22)” and “HTTP (80)” from the drop-down.
8. Keep the remaining settings at their defaults and click on “Review + create” at the bottom of the page.
9. The “Create a virtual machine” page will display the details of the VM you’re about to create. Once ready, click on “Create.”
10. The deployment process will take a few minutes. Once it’s finished, proceed to the next section.
To connect to the virtual machine:
1. Access the overview page of your VM and click on “Connect.”
2. On the “Connect to virtual machine” page:
- Keep the default options for connecting via IP address over port 22.
- A connection command for logging in will be displayed. Click the button to copy the command. Here’s an example of what the SSH connection command looks like:
“`
ssh [email protected]
“`
3. Using the same bash shell that you used to generate your SSH key pair, you can either reopen the Cloud Shell by selecting >_ again
or going to https://shell.azure.com/bash.
4. Paste the SSH connection command into the shell to initiate an SSH session.
Usage/Deployment Instructions
Anarion Technologies – Cassandra
Note: Search product on Azure marketplace and click on “Get it now”
Click on Continue
Click on Create
Creating a Virtual Machine, enter or select appropriate values for zone, machine type, resource group and so on as per your choice.
After Process of Create Virtual Machine. You have got an Option Go to Resource Group Click Go to Resource Group
Copy thePublic IP Address
SSH in your Terminal and run these following Commands;
$ sudo systemctl status cassandra
If the output indicates
that the daemon failed to start with an oom-kill error,
the daemon could not start because the system ran out of memory. To resolve the
issue, add more RAM to your server.
Connecting to the Cluster
To connect to the cluster, you will use the nodetool
utility.
To check the cluster’s status, type:
$ sudo nodetool status
In the output, UN
means it’s Up and Normal:
Then connect to the cluster using its interactive command line interface cqlsh
:
$cqlsh
You will see it connect:
Type exit
to quit:
cqlsh>
exit
Congratulations! You now
have a single-node Cassandra cluster running on Ubuntu 22.04. You can set up a
multi-node cluster with How
To Install Cassandra and Run a Multi-Node Cluster. More information about
Cassandra is available at the project’s
website.