Learning Apache Cassandra - Second Edition

Build a scalable, fault-tolerant and highly available data layer for your applications using Apache Cassandra About This Book Install Cassandra and set up multi-node clusters Design rich schemas that capture the relationships between different data types Master the advanced features available in Cas...

Descripción completa

Detalles Bibliográficos
Autor principal: Yarabarla, Sandeep (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham : Packt Publishing 2017.
Edición:2nd ed
Colección:EBSCO Academic eBook Collection Complete.
Acceso en línea:Conectar con la versión electrónica
Ver en Universidad de Navarra:https://innopac.unav.es/record=b42543071*spi
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Getting Up and Running with Cassandra; What is big data?; Challenges of modern applications; Why not relational databases?; How to handle big data; What is Cassandra and why Cassandra?; Horizontal scalability; High availability; Write optimization; Structured records; Secondary indexes; Materialized views; Efficient result ordering; Immediate consistency; Discretely writable collections; Relational joins; MapReduce and Spark; Rich and flexible data model.
  • Lightweight transactionsMultidata center replication; Comparing Cassandra to the alternatives; Installing Cassandra; Installing the JDK; Installing on Debian-based systems (Ubuntu); Installing on RHEL-based systems; Installing on Windows; Installing on Mac OS X; Installing the binary tarball; Bootstrapping the project; CQL-the Cassandra Query Language; Interacting with Cassandra; Getting started with CQL; Creating a keyspace; Selecting a keyspace; Creating a table; Inserting and reading data; New features in Cassandra 2.2, 3.0, and 3.X; Summary; Chapter 2: The First Table.
  • How to configure keyspacesCreating the users table; Structuring of tables; Table and column options; The type system; Strings; Integers; Floating point and decimal numbers; Timestamp; UUIDs; Booleans; Blobs; Collections; Other data types; The purpose of types; Inserting data; Writing data does not yield feedback; Partial inserts; Selecting data; Missing rows; Selecting more than one row; Retrieving all the rows; Paginating through results; Inserts are always upserts; Developing a mental model for Cassandra; Summary; Chapter 3: Organizing Related Data; A table for status updates.
  • Creating a table with a compound primary keyThe structure of the status updates table; UUIDs and timestamps; Working with status updates; Extracting timestamps; Looking up a specific status update; Automatically generating UUIDs; Anatomy of a compound primary key; Anatomy of a single-column primary key; Beyond two columns; Multiple clustering columns; Composite partition keys; Composite partition key table; Structure of composite partition key tables; Composite partition key with multiple clustering columns; Compound keys represent parent-child relationships.
  • Coupling parents and children using static columnsDefining static columns; Working with static columns; Interacting only with the static columns; Static-only inserts; Static columns act like predefined joins; When to use static columns; Refining our mental model; Summary; Chapter 4: Beyond Key-Value Lookup; Looking up rows by partition; The limits of the WHERE keyword; Restricting by clustering column; Restricting by part of a partition key; Retrieving status updates for a specific time range; Creating time UUID ranges; Selecting a slice of a partition; Paginating over rows in a partition.