Презентация Install Apache Cassandra on Ubuntu. Work with Cassandra and Python онлайн
На нашем сайте вы можете скачать и просмотреть онлайн доклад-презентацию на тему Install Apache Cassandra on Ubuntu. Work with Cassandra and Python абсолютно бесплатно. Урок-презентация на эту тему содержит всего 33 слайда. Все материалы созданы в программе PowerPoint и имеют формат ppt или же pptx. Материалы и темы для презентаций взяты из открытых источников и загружены их авторами, за качество и достоверность информации в них администрация сайта не отвечает, все права принадлежат их создателям. Если вы нашли то, что искали, отблагодарите авторов - поделитесь ссылкой в социальных сетях, а наш сайт добавьте в закладки.
Презентации » Устройства и комплектующие » Install Apache Cassandra on Ubuntu. Work with Cassandra and Python
Оцените!
Оцените презентацию от 1 до 5 баллов!
- Тип файла:ppt / pptx (powerpoint)
- Всего слайдов:33 слайда
- Для класса:1,2,3,4,5,6,7,8,9,10,11
- Размер файла:1.42 MB
- Просмотров:58
- Скачиваний:0
- Автор:неизвестен
Слайды и текст к этой презентации:
№4 слайд
Содержание слайда: What is Cassandra?
Apache Cassandra is a top level Apache project born at Facebook and built on Amazon’s Dynamo and Google’s BigTable, is a distributed database for managing large amounts of structured data across many commodity servers, while providing highly available service and no single point of failure.
№5 слайд
Содержание слайда: What is Cassandra?
Cassandra’s architecture is responsible for its ability to scale, perform, and offer continuous uptime.
Rather than using a legacy master-slave or a manual and difficult-to-maintain sharded architecture, Cassandra has a masterless “ring” design that is elegant, easy to setup, and easy to maintain.
№6 слайд
Содержание слайда: What is Cassandra?
In Cassandra, all nodes are equal, which means no master node, no master-slave relationships between nodes, no sharded system.
Cassandra’s scalable architecture allows it to handle large amounts of data, thousands of user, and a great number of operations per second with ease. Even across multiple data storages.
Absence of master nodes and shards makes Cassandra resilient for node failures (no single point of weakness) and enables small uptime.
№7 слайд
Содержание слайда: Features of Cassandra
Elastic scalability - add more nodes to accommodate more clients for data easily.
Always on architecture - Business-critical applications cannot afford failures and Cassandra provides continuous availability without failure prone points.
Fast linear-scale performance - Cassandra’s ability to maintain quick response time by scaling load on nodes with their increase. More nodes - more throughput!
Flexible data storage - all data formats (e.g. structured, semi-structured, and unstructured) are accommodated dynamically and with desired changes to them.
Easy data distribution - flexibly distribute data across multiple data centers as needed.
Transaction support - support for properties like Atomicity, Consistency, Isolation, and Durability (ACID).
Fast writes - writes are blazingly fast, storing terabytes of data without loss of the read efficiency. Even on cheap commodity hardware.
№8 слайд
Содержание слайда: Disadvantages
With all its shiny parts, Cassandra still has some let downs:
A range scan implementation is far from perfect.
A lot of adjustments are made at the cluster level.
SSTable compaction, although occurs in the background, still spends a significant server resources and slows down.
There is also a disadvantage related to communication between nodes, because that protocol does not able to transfer data as stream.
№9 слайд
Содержание слайда: Data Replication in Cassandra
In Cassandra, replicas for a given piece of data are distributed on one or more of the nodes in a cluster. If it is detected that some of the nodes responded with an out-of-date value, Cassandra will return the most recent value to the client. After returning the most recent value, Cassandra performs update of the stale values in the background: process known as read repair.
№10 слайд
Содержание слайда: Components of Cassandra
Node − It is the place where data is stored, single machine.
Data center − It is a collection of related nodes.
Cluster − A cluster is a component that contains one or more data centers.
Commit log − The commit log is a crash-recovery mechanism in Cassandra. Every write operation is written to the commit log.
Mem-table − A mem-table is a memory-resident data structure. After commit log, the data will be written to the mem-table. Sometimes, for a single-column family, there will be multiple mem-tables.
SSTable − It is a disk file to which the data is flushed from the mem-table when its contents reach a threshold value.
Bloom filter − These are nothing but quick, nondeterministic, algorithms for testing whether an element is a member of a set. It is a special kind of cache. Bloom filters are accessed after every query.
№12 слайд
Содержание слайда: Cassandra Query Language
The Cassandra Query Language (CQL) is the primary language for communicating with the Cassandra database. CQL is purposefully similar to Structured Query Language (SQL) used in relational databases like MySQL and Postgres. This similarity lowers the barrier of entry for users familiar with relational databases. Many queries are very similar in these two. In fact, a lot of basic things are even exactly the same.
But Cassandra is a non-relational database, and so uses different concepts to store and retrieve data. Simplistically, a Cassandra keyspace is a SQL database, and a Cassandra column family is a SQL table (CQL allows you to interchange the words “TABLE” and “COLUMNFAMILY” for convenience).
№14 слайд
Содержание слайда: Write Operation
When write request comes to the node,
first of all, it logs to the commit log. Then, Cassandra writes the data in the memtable. Mem-table is a temporarily stored data in the memory while Commit log save the transaction for backup purposes. When memtable is full, data is flushed to the SSTable data file.
In the case when remaining replicas lose data due to node downs or some other problem, Cassandra will make the row consistent by the built-in repair mechanism in Cassandra.
№15 слайд
Содержание слайда: Read Operation
There are three types of read requests that
are sent to replicas by a coordinator node.
Direct request
Digest request
Read repair request
The coordinator sends direct request to one of the nodes with replicas and gets the value that is being looked for. After that, the coordinator sends the digest request to the number of replicas specified by the consistency level and checks whether the returned data is an updated data.
Lastly, the coordinator sends digest request to all the remaining replicas. If any node gives out-of-date value, a background read repair request will update that data. This process is called read repair mechanism
№16 слайд
Содержание слайда: Install Java on Ubuntu
Before installing Cassandra, make sure that Java is already installed on your computer. To make the Oracle JRE package available, you'll have to add a Personal Package Archives (PPA) using this command:
sudo add-apt-repository ppa:webupd8team/java
Update the package database:
sudo apt-get update
№17 слайд
Содержание слайда: Install Java on Ubuntu
Then, install the Oracle JRE. Installing this particular package not only installs it but also makes it the default JRE. When prompted, accept the license agreement:
sudo apt-get install oracle-java8-set-default
After installing it, verify that it's now the default JRE:
java -version
№18 слайд
Содержание слайда: Install Apache Cassandra on Ubuntu
We will use DataStax Community repository with a few simple steps to install Cassandra:
1. Add the DataStax Community repository to the /etc/apt/sources.list.d/cassandra.sources.list
sudo echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
№20 слайд
Содержание слайда: Install Apache Cassandra on Ubuntu
Because the Ubuntu packages start the Cassandra service automatically, you must stop the server and clear the data:
sudo service cassandra stop
Next remove the default cluster_name (Test Cluster) from the system table. All nodes must use the same cluster name.
sudo rm -rf /var/lib/cassandra/data/system/*
sudo service cassandra start
№28 слайд
Содержание слайда: Alter Table
Modify the column metadata of a table.
Adding a column
To add a column (other than a column of a collection type) to a table, use ALTER TABLE and the ADDinstruction as follows:
Dropping a column
To remove (drop) a column from the table, use ALTER TABLE and the DROP instruction.
№30 слайд
Содержание слайда: Task #1
Add a new record to the users_ table with the following values: id = 4, name = "User_4", born = 1998, country = "France". And check what you've done using current code:
To check the correctness of this and the following task you is proposed to solve few tests in the web page of the current course related with the respective task.
Скачать все slide презентации Install Apache Cassandra on Ubuntu. Work with Cassandra and Python одним архивом:
-
Using jquery. Creating animations, working with graphics, and accessing data
-
Work with EXCEL
-
The Essence of C with examples in C84, C98, C11, and C14
-
Prolog. A general-purpose logic programming language associated with artificial intelligence and computational linguistics
-
C Network Programming Systematic Reuse with ACE & Frameworks
-
OOP with C. Introduction C. Data Types. Variables, expressions, statements. C decision and iteration constructs
-
Introduction to spring framework and dependency injection
-
Exception Handling in . NET Framework
-
Repository and Unit of Work
-
Lesson 5. Working with Objects