万本电子书0元读

万本电子书0元读

顶部广告

Apache Cassandra Essentials电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Nitin Padalia

出  版  社:Packt Publishing

出版时间:2015-11-20

字       数:98.3万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Create your own massively scalable Cassandra database with highly responsive database queries About This Book Create a Cassandra cluster and tweak its configuration to get the best performance based on your environment Analyze the key concepts and architecture of Cassandra, which are essential to create highly responsive Cassandra databases A fast-paced and step-by-step guide on handling huge amount of data and getting the best out of your database applications Who This Book Is For If you are a developer who is working with Cassandra and you want to deep dive into the core concepts and understand Cassandra’s non-relational nature, then this book is for you. A basic understanding of Cassandra is expected. What You Will Learn Install and set up your Cassandra Cluster using various installation types Use Cassandra Query Language (CQL) to design Cassandra database and tables with various configuration options Design your Cassandra database to be evenly loaded with the lowest read/write latencies Employ the available Cassandra tools to monitor and maintain a Cassandra cluster Debug CQL queries to discover why they are performing relatively slowly Choose the best-suited compaction strategy for your database based on your usage pattern Tune Cassandra based on your deployment operation system environment In Detail Apache Cassandra Essentials takes you step-by-step from from the basics of installation to advanced installation options and database design techniques. It gives you all the information you need to effectively design a well distributed and high performance database. You’ll get to know about the steps that are performed by a Cassandra node when you execute a read/write query, which is essential to properly maintain of a Cassandra cluster and to debug any issues. Next, you’ll discover how to integrate a Cassandra driver in your applications and perform read/write operations. Finally, you’ll learn about the various tools provided by Cassandra for serviceability aspects such as logging, metrics, backup, and recovery. Style and approach This step-by-step guide is packed with examples that explain the core concepts as well as advanced concepts, techniques, and usages of Apache Cassandra.
目录展开

Apache Cassandra Essentials

Table of Contents

Apache Cassandra Essentials

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Getting Your Cassandra Cluster Ready

Installation

Prerequisites

Compiling Cassandra from source and installing

Installation from a precompiled binary

The installation layout

The directory layout in tarball installations

The directory layout in package-based installation

Configuration files

cassandra.yaml

Running a Cassandra server

Running a Cassandra node

Setting up the cluster

Viewing the cluster status

Summary

2. An Architectural Overview

Background

Cassandra cluster overview

The Gossip protocol

Failure detection

Data distribution

Replication

SimpleStrategy

NetworkTopologyStrategy

Snitches

Virtual nodes

Adding nodes to our cluster

Create keyspace and column family

Summary

3. Creating Database and Schema

A database and schema

Keyspace

Column families

Static rows

Wide rows

A primary key

Partition keys and clustering columns

A composite partition key

Multiple clustering columns

Static columns

Modifying a table

Data types

Counters

Collections

Sets

Lists

Map

UDTs

Secondary indexes

Allowing filtering

TTL

Conditional querying

Conditions on a partition key

Conditions on a partition key and clustering columns

Sorting query results

Write operations

Lightweight transactions

Batch statements

Summary

4. Read and Write – Behind the Scenes

Write operations

CommitLog

Anatomy of Memtable

SSTable explained

SSTable Compaction strategies

Size-tiered compaction

Leveled compaction

DateTiered compaction

Read operations

Reads from row cache

Read operations for row cache miss

Key is in KeyCache

Key search miss both the key cache and the row cache

Delete operations

Data consistency

Read operation

Digest reads

Read repair

Consistency levels

Write operation

Hinted handoff

Consistency levels

Tracing Cassandra queries

Summary

5. Writing Your Cassandra Client

Connecting to a Cassandra cluster

Driver Connection policies

Load balancing policies

Retry policies

Reconnection policies

Reading and writing to the Cassandra cluster

QueryBuilder

Reading and writing asynchronously

Prepared statements

Example REST service using prepared statement

Batch statements

Mapping API

Tracing Cassandra queries using Java driver

Summary

6. Monitoring and Tuning a Cassandra Cluster

Monitoring a Cassandra cluster

Use logging for debugging

Monitoring using command-line utilities

nodetool cfstats

nodetool cfhistograms

nodetool netstats

nodetool tpstats

JConsole

Third-party tools

Tuning Cassandra nodes

Configuring Cassandra caches

Tuning Bloom filters

Configuring and tuning Java

Summary

7. Backup and Restore

Taking backup of a Casandra cluster

Manual backup

Deleting snapshots

Incremental backup

Restoring data to Cassandra

The Cassandra bulk loader

Exporting and importing data using the Cassandra JSON utility

Loading external data into Cassandra

Removing nodes from Cassandra cluster

Adding nodes to a Cassandra cluster

Replacing dead nodes in a cluster

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部