Dylan  Iqbal

Dylan Iqbal

1658453413

Learn Apache Cassandra Database – Full Course

Apache Cassandra Database – Full Course for Beginners

Apache Cassandra is an open source NoSQL distributed database. This beginner's Cassandra course has four modules. The first three modules will cover the basics Apache Cassandra data modeling. The final module covers practical applications of Cassandra.

⭐️ Course Contents ⭐️
⌨️ (00:30) Module 1: Cassandra Intro and Background
⌨️ (21:53) Module 2: Collections, User Defined Types, and Counters
⌨️ (31:29) Module 3: Data Modeling
⌨️ (1:04:22) Module 4: Practical Applications

Get Started with Astra DB, built on Apache Cassandra: https://astra.datastax.com/register/ac250/vi-10

#apache #cassandra #database

Learn Apache Cassandra Database – Full Course
Awesome  Rust

Awesome Rust

1653973506

CDRS Tokio: High-level Async Cassandra Client Written in 100% Rust

CDRS tokio

CDRS is production-ready Apache Cassandra driver written in pure Rust. Focuses on providing high level of configurability to suit most use cases at any scale, as its Java counterpart, while also leveraging the safety and performance of Rust.

Features

  • Asynchronous API;
  • TCP/TLS connection (rustls);
  • Topology-aware dynamic and configurable load balancing;
  • Configurable connection strategies and pools;
  • Configurable speculative execution;
  • LZ4, Snappy compression;
  • Cassandra-to-Rust data serialization/deserialization with custom type support;
  • Pluggable authentication strategies;
  • ScyllaDB support;
  • Server events listening;
  • Multiple CQL version support (3, 4), full spec implementation;
  • Query tracing information;
  • Prepared statements;
  • Query paging;
  • Batch statements;
  • Configurable retry and reconnection policy;
  • Support for interleaved queries;
  • Support for Yugabyte YCQL JSONB;

Performance

Due to high configurability of CDRS, the performance will vary depending on use case. The following benchmarks have been made against the latest (master as of 03-12-2012) versions of respective libraries (except cassandra-cpp: 2.16.0).

  • cdrs-tokio-large-pool - CDRS with node connection pool equal to double of physical CPU cores
  • cdrs-tokio-small-pool - CDRS with a single connection per node
  • scylladb-rust-large-pool - scylla crate with node connection pool equal to double of physical CPU cores
  • scylladb-rust-small-pool - scylla crate with a single connection per node
  • cassandra-cpp - Rust bindings for Datastax C++ Driver, running on multiple threads using Tokio
  • gocql - a driver written in Go

  insert benchmark

select benchmark

mixed benchmark

Knowing given use case, CDRS can be optimized for peak performance.

Documentation and examples

Getting started

This example configures a cluster consisting of a single node without authentication, and uses round-robin load balancing. Other options are kept as default.

use cdrs_tokio::cluster::session::{TcpSessionBuilder, SessionBuilder};
use cdrs_tokio::cluster::NodeTcpConfigBuilder;
use cdrs_tokio::load_balancing::RoundRobinLoadBalancingStrategy;
use cdrs_tokio::query::*;

#[tokio::main]
async fn main() {
    let cluster_config = NodeTcpConfigBuilder::new()
        .with_contact_point("127.0.0.1:9042".into())
        .build()
        .await
        .unwrap();
    let session = TcpSessionBuilder::new(RoundRobinLoadBalancingStrategy::new(), cluster_config).build();

    let create_ks = "CREATE KEYSPACE IF NOT EXISTS test_ks WITH REPLICATION = { \
                     'class' : 'SimpleStrategy', 'replication_factor' : 1 };";
    session
        .query(create_ks)
        .await
        .expect("Keyspace create error");
}

Download Details:
Author: krojew
Source Code: https://github.com/krojew/cdrs-tokio
License: View license

#rust  #database #cassandra 

CDRS Tokio: High-level Async Cassandra Client Written in 100% Rust
Awesome  Rust

Awesome Rust

1653966148

CDRS: Cassandra DB Native Client Written in Rust

CDRS

CDRS is looking for maintainers

CDRS is Apache Cassandra driver written in pure Rust.

💡Looking for an async version?

Features

  • TCP/SSL connection;
  • Load balancing;
  • Connection pooling;
  • LZ4, Snappy compression;
  • Cassandra-to-Rust data deserialization;
  • Pluggable authentication strategies;
  • ScyllaDB support;
  • Server events listening;
  • Multiple CQL version support (3, 4), full spec implementation;
  • Query tracing information.

Documentation and examples

Getting started

Add CDRS to your Cargo.toml file as a dependency:

cdrs = { version = "2" }

Then add it as an external crate to your main.rs:

extern crate cdrs;

use cdrs::authenticators::NoneAuthenticator;
use cdrs::cluster::session::{new as new_session};
use cdrs::cluster::{ClusterTcpConfig, NodeTcpConfigBuilder};
use cdrs::load_balancing::RoundRobin;
use cdrs::query::*;

fn main() {
  let node = NodeTcpConfigBuilder::new("127.0.0.1:9042", NoneAuthenticator {}).build();
  let cluster_config = ClusterTcpConfig(vec![node]);
  let no_compression =
    new_session(&cluster_config, RoundRobin::new()).expect("session should be created");

  let create_ks: &'static str = "CREATE KEYSPACE IF NOT EXISTS test_ks WITH REPLICATION = { \
                                 'class' : 'SimpleStrategy', 'replication_factor' : 1 };";
  no_compression.query(create_ks).expect("Keyspace create error");
}

This example configures a cluster consisting of a single node, and uses round robin load balancing and default r2d2 values for connection pool.

Download Details:
Author: AlexPikalov
Source Code: https://github.com/AlexPikalov/cdrs
License: Apache-2.0, MIT licenses found

#rust #cassandra  #database 

CDRS: Cassandra DB Native Client Written in Rust

Python Driver: DataStax Python Driver For Apache Cassandra

DataStax Driver for Apache Cassandra

A modern, feature-rich and highly-tunable Python client library for Apache Cassandra (2.1+) and DataStax Enterprise (4.7+) using exclusively Cassandra's binary protocol and Cassandra Query Language v3.

The driver supports Python 2.7, 3.5, 3.6, 3.7 and 3.8.

Note: DataStax products do not support big-endian systems.

Features

Installation

Installation through pip is recommended:

$ pip install cassandra-driver

For more complete installation instructions, see the installation guide.

Documentation

The documentation can be found online here.

A couple of links for getting up to speed:

Object Mapper

cqlengine (originally developed by Blake Eggleston and Jon Haddad, with contributions from the community) is now maintained as an integral part of this package. Refer to documentation here.

Contributing

See CONTRIBUTING.md.

Reporting Problems

Please report any bugs and make any feature requests on the JIRA issue tracker.

If you would like to contribute, please feel free to open a pull request.

Getting Help

Your best options for getting help with the driver are the mailing list and the DataStax Community.

License

Copyright DataStax, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author: datastax
Source Code: https://github.com/datastax/python-driver
License: Apache-2.0 License

#python #driver #cassandra 

Python Driver: DataStax Python Driver For Apache Cassandra
Jerod  Durgan

Jerod Durgan

1646668620

How to Run Apache Cassandra on Kubernetes with Statefulset

Before getting started with the Deployment of Cassandra on Kubernetes infrastructure, we need to make sure that the below pre-requisites is in place-

  1. A Kubernetes Cluster with minimum two worker nodes.
  2. The kubectl command line tool synced and in place.

For the purpose of demonstration, we will be making use of Minikube to have a Kubernetes setup.

#kubernetes #apache #cassandra 

How to Run Apache Cassandra on Kubernetes with Statefulset
Python  Library

Python Library

1645112820

Python Driver: DataStax Python Driver for Apache Cassandra

DataStax Driver for Apache Cassandra

A modern, feature-rich and highly-tunable Python client library for Apache Cassandra (2.1+) and DataStax Enterprise (4.7+) using exclusively Cassandra's binary protocol and Cassandra Query Language v3.

The driver supports Python 2.7, 3.5, 3.6, 3.7 and 3.8.

Note: DataStax products do not support big-endian systems.

Features

Installation

Installation through pip is recommended:

$ pip install cassandra-driver

For more complete installation instructions, see the installation guide.

Documentation

The documentation can be found online here.

A couple of links for getting up to speed:

Object Mapper

cqlengine (originally developed by Blake Eggleston and Jon Haddad, with contributions from the community) is now maintained as an integral part of this package. Refer to documentation here.

Contributing

See CONTRIBUTING.md.

Reporting Problems

Please report any bugs and make any feature requests on the JIRA issue tracker.

If you would like to contribute, please feel free to open a pull request.

Getting Help

Your best options for getting help with the driver are the mailing list and the DataStax Community.

Download Details:
Author: datastax
Source Code: https://github.com/datastax/python-driver
License: Apache-2.0 License

#python #cassandra 

Python Driver: DataStax Python Driver for Apache Cassandra
 iOS App Dev

iOS App Dev

1643424900

Big Data Plugin: Provides Support for interacting with Hadoop, MongoDB

Pentaho Big Data Plugin

The Pentaho Big Data Plugin Project provides support for an ever-expanding Big Data community within the Pentaho ecosystem. It is a plugin for the Pentaho Kettle engine which can be used within Pentaho Data Integration (Kettle), Pentaho Reporting, and the Pentaho BI Platform.

Building

It's a maven build, so mvn clean install is a typical default for a local build.

Pre-requisites

JDK 11 in your path. Maven 3.3.9 in your path. This settings.xml

How to use the custom settings.xml

Option 1: Copy this file into your /.m2 folder and name it "settings.xml". Warning: If you do this, it will become your default settings.xml for all maven builds.

Option 2: Copy this file into some other folder--possibly the project folder for the project you want to build and use the maven 's' option to build with this settings.xml file. Example: mvn -s public-settings.xml install.

The Pentaho profile defaults to pull all artifacts through the Pentaho public repository. If you want to try resolving maven plugin dependencies through the maven central repository instead of the Pentaho public repository, activate the "central" profile like this:

mvn -s -public-settings.xml -P central install

If your fails to resolve the jacoco-maven-plugin version 0.7.7-SNAPSHOT

The 0.7.7-SNAPSHOT property version for the jacoco-maven-plugin is defined in several releases of the Pentaho parent poms, but it is only available in the Pentaho artifact repositories. If you are trying to resolve through maven central or other public repositories you should override to get the latest version like this:

mvn -s -public-settings.xml -P central install -Djacoco-maven-plugin.version=0.7.7.201606060606

Further Reading

Additional documentation is available on the Community wiki: Big Data Plugin for Java Developers

Download Details:
Author: pentaho
Source Code: https://github.com/pentaho/big-data-plugin
License: Apache-2.0 License

#big-data #mongodb #cassandra #java #hadoop 

Big Data Plugin: Provides Support for interacting with Hadoop, MongoDB

Spring Data for Apache Cassandra

Spring Data for Apache Cassandra

The primary goal of the Spring Data project is to make it easier to build Spring-powered applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services.

The Apache Cassandra NoSQL Database offers many new capabilities for teams seeking a solution to handle high velocity, high volume and variable data flows. This new way of thinking introduces new concepts and a learning curve that can be intimidating to team members and team managers. Spring Data for Apache Cassandra offers a familiar interface to those who have used other Spring Data modules in the past.

The learning curve for developing applications with Apache Cassandra is significantly reduced when using Spring Data for Apache Cassandra. With the power to stay at a high level with annotated POJOs, or at a low level with high performance data ingestion capabilities, the Spring Data for Apache Cassandra templates are sure to meet every application need.

Features

  • Build repositories based on common Spring Data interfaces
  • Support for synchronous, reactive, and asynchronous data operations
  • Support for XML based Keyspace creation and CQL Table creation
  • JavaConfig and XML Support for all Cluster and Session Capabilities
  • Exception Translation to the familiar Spring DataAccessException hierarchy
  • Convenient QueryBuilders to eliminate the need to learn CQL
  • Automatic implementation of Repository interfaces including support for custom query methods
  • Based on the 4.x DataStax CQL Java Driver

Code of Conduct

This project is governed by the Spring Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.

Getting Started

Here is a quick teaser of an application using Spring Data Repositories in Java:

public interface PersonRepository extends CrudRepository<Person, Long> {

  List<Person> findByLastname(String lastname);

  List<Person> findByFirstnameLike(String firstname);
}

@Service
public class MyService {

  private final PersonRepository repository;

  public MyService(PersonRepository repository) {
    this.repository = repository;
  }

  public void doWork() {

    repository.deleteAll();

    Person person = new Person();
    person.setFirstname("Matthew");
    person.setLastname("Adams");
    repository.save(person);

    List<Person> lastNameResults = repository.findByLastname("Adams");
    List<Person> firstNameResults = repository.findByFirstnameLike("M*");
 }
}

@Configuration
@EnableCassandraRepositories
class ApplicationConfig extends AbstractCassandraConfiguration {

  @Override
  public String getContactPoints() {
    return "localhost";
  }

  @Override
  protected String getKeyspaceName() {
    return "springdata";
  }
}

Maven configuration

Add the Maven dependency:

<dependency>
  <groupId>org.springframework.data</groupId>
  <artifactId>spring-data-cassandra</artifactId>
  <version>${version}</version>
</dependency>

If you’d rather like the latest snapshots of the upcoming major version, use our Maven snapshot repository and declare the appropriate dependency version.

<dependency>
  <groupId>org.springframework.data</groupId>
  <artifactId>spring-data-cassandra</artifactId>
  <version>${version}-SNAPSHOT</version>
</dependency>

<repository>
  <id>spring-libs-snapshot</id>
  <name>Spring Snapshot Repository</name>
  <url>https://repo.spring.io/libs-snapshot</url>
</repository>

Getting Help

Having trouble with Spring Data? We’d love to help!

Reporting Issues

Spring Data uses GitHub as issue tracking system to record bugs and feature requests. If you want to raise an issue, please follow the recommendations below:

  • Before you log a bug, please search the issue tracker to see if someone has already reported the problem.
  • If the issue does not already exist, create a new issue.
  • Please provide as much information as possible with the issue report, we like to know the version of Spring Data that you are using and JVM version.
  • If you need to paste code, or include a stack trace use Markdown ``` escapes before and after your text.
  • If possible try to create a test-case or project that replicates the issue. Attach a link to your code or a compressed file containing your code.

Building from Source

You don’t need to build from source to use Spring Data (binaries in repo.spring.io), but if you want to try out the latest and greatest, Spring Data can be easily built with the maven wrapper. You also need JDK 1.8.

$ ./mvnw clean install

If you want to build with the regular mvn command, you will need Maven v3.5.0 or above.

Also see CONTRIBUTING.adoc if you wish to submit pull requests, and in particular please sign the Contributor’s Agreement before your first non-trivial change.

Initial Contributors

Spring Data for Apache Cassandra was initially created and supported by the following companies and individuals:

Prowave Consulting - David Webb

SciSpike - Matthew Adams

John McPeek

Building reference documentation

Building the documentation builds also the project without running tests.

 $ ./mvnw clean install -Pdistribute

The generated documentation is available from target/site/reference/html/index.html.

Examples

Spring Data Examples contains example projects that explain specific features in more detail.

Download Details:
Author: spring-projects
Source Code: https://github.com/spring-projects/spring-data-cassandra
License: Apache-2.0 License

#spring #spring-framework #spring-boot #java #cassandra 

Spring Data for Apache Cassandra
Aisu  Joesph

Aisu Joesph

1637956800

Run Glowroot on Azure Cosmos DB Cassandra API

👉We are excited to announce that support for Glowroot is now generally available for the Azure Cosmos DB Cassandra API. Glowroot is an open-source APM tool for monitoring the performance of your Java-based applications.

⭐️You can see more at the link at the end of the article. Thank you for your interest in the blog, if you find it interesting, please give me a like, comment and share with everyone. Thanks! ❤️
#azure #azurecosmosdb #cassandra #api 

Run Glowroot on Azure Cosmos DB Cassandra API
Grace  Edwards

Grace Edwards

1634674860

How to Install and Run Apache Cassandra Easily on Mac in 2021

In this video, I'm going to install and run Apache Cassandra on my Mac Book Pro. I cannot install and run it successfully with homebrew. That's why, I had to install it manually.

We will mention cassandra query language shell (cqlsh). I'm going to run DDL (Data Definition Language) scripts to create keyspaces (schemas in relational databases) and tables. Besides, DML (Data Manipulation Language) statements will be run to insert records and selecting / querying them.

#apache #cassandra 

How to Install and Run Apache Cassandra Easily on Mac in 2021
Grace  Edwards

Grace Edwards

1634660008

How to Implement Deep Face Recognition with Apache Cassandra in 2021

In this video, we are going to mention how to use Apache Cassandra wide column store for facial recognition tasks. Notice that key value stores such as Redis and Cassandra over-perform face verification tasks. Here, 
Cassandra is a wide column store. In contrast to Redis key value store, it can store multiple columns for a row.

We will use deepface library for python to represent facial images as vector. Then, we will store vector representations in Cassandra.

#cassandra #apache #recognition 

How to Implement Deep Face Recognition with Apache Cassandra in 2021
Whitney  Durgan

Whitney Durgan

1634458080

MySQL vs Cassandra DB, Compare A Few Pros Cons

In my last MySQL vs article, I talked about Redis, which was a database I hadn’t heard about before. This time, I wanted to talk about a database that I’ve heard of but never gotten the time to try out. Cassandra DB is another NoSQL database that I haven’t had the opportunity to try but often heard about it at events like Hackathons.

#mysql #cassandra 

MySQL vs Cassandra DB, Compare A Few Pros Cons
Misael  Stark

Misael Stark

1633622280

Making The Go Docker Container Wait for The Cassandra Container

In this example we have a Go and Cassandra service. Go depends on Cassandra. Cassandra is slow in accepting connections. We will use our script in Go to force it to wait for Cassandra to accept connections first. Once Cassandra says it is ready then we will bring up the Go service.

#docker #go #cassandra 

Making The Go Docker Container Wait for The Cassandra Container

Compare The Difference Between SQL & NoSQL Database

As an entrepreneur or an enterprise IT leader, you are likely thinking about the technology stack to use in your planned project. Your decision-making processes cover databases. Here, you think about SQL vs NoSQL databases. There are popular databases in both categories. Examples are MySQL and PostgreSQL among SQL databases. Among NoSQL databases, MongoDB and Cassandra are well-known. You might be weighing between MySQL vs MongoDB, MySQL vs Cassandra, PostgreSQL vs MongoDB, and PostgreSQL vs Cassandra.

#nosql #sql #mongodb #postgresql #cassandra #mysql 
 

Compare The Difference Between SQL & NoSQL Database
Nabunya  Jane

Nabunya Jane

1633359600

Instructions for Upgrading to Cassandra 4.0

Alongside stability, Apache Cassandra 4.0 stands out for its ability to scale operations faster, its new auditing capabilities, and the way it embraces privacy by design. In this article, we’ll cover the new features and walk you through the steps required to upgrade to Cassandra 4.0.

#cassandra 


 

Instructions for Upgrading to Cassandra 4.0