Apache Cassandra static column 介绍与实战
Apache Cassandra static column 介绍与实战 Spark大数据博客 - https://www.iteblog.com Apache Cassandra static column 介绍与实战 假设我们有这样的场景:我们想在 Cassandra 中使用一张表记录用户基本信息(比如 email、密 码等)以及用户状态更新。我们知道,用户的基本信息一般很少会变动,但是状态会经常变化, 态会经常变化, 如果每次状态更新都把用户基本信息都加进去,势必会让费大量的存储空间。为了解决这种问题 ,Cassandra 引入了 static column。同一个 partition key 中被声明为 static 的列只有一个值的,也就是只存储一份。 如果想及时了 解Spark、Hadoop或者Hbase相关的文章,欢迎关注微信公共帐号:iteblog_hadoop 定义 static ... PRIMARY KEY ("username") 1 / 5 Apache Cassandra static column 介绍与实战 Spark大数据博客 - https://www.iteblog.com ... ); InvalidRequest:0 码力 | 5 页 | 0 Bytes | 1 年前3Cassandra在饿了么的应用
Cassandra在饿了么的应用 主讲人:翟玉勇 时间:2017.06.11 1.Cassandra的基本原理介绍 2.为什么选择Cassandra 3.饿了么Cassandra实践 4.大数据离线平台和Cassandra的整合 概述 Cassandra历史 BigTable Dynamo Cassandra概述 Cassandra最初源自FaceBook,集合了Google BigTable面向列的特 BigTable面向列的特 性和Amazon Dynamo分布式哈希(DHT)的P2P特性于一身,具有很高 的性能、可扩展性、容错、部署简单等特点。 Cassandra架构关键字 1.Gossip 点对点通信协议,用于集群之间节点交换位置和状态信息 2.Partitioner 决定如何在集群中的节点间分发数据,也就是哪个节点放止数据的第一个replica 3.Replica Strategy 定义了复制策略用来放置replicas和路由请求所使用的拓扑信息 Gossip-节点的通信 Cassandra使用点对点通信协议Gossip在集群中的节点间交换位置和状态信息。Gossip进程 每秒运行一次,与最多3个其他节点交换信息,这样所有的节点可很快的了解集群中其他节点 信息。 1.种子节点 2.Cassandra故障探测 3.Cassandra故障恢复 Partitioner Partitioner定义了0 码力 | 40 页 | 4.95 MB | 1 年前3Apache Cassandra 快速入门指南(Quick Start)
Apache Cassandra 快速入门指南(Quick Start) Spark大数据博客 - https://www.iteblog.com Apache Cassandra 快速入门指南(Quick Start) 我们在这篇文章简单介绍了 Apache Cassandra 是什么,以及有什么值得关注的特性。本文将简单介绍 Apache Cassandra 的安装以及简单使用,可以帮助大家快速了解 的安装以及简单使用,可以帮助大家快速了解 Apache Cassandra。 我们到 Apache Cassandra 的官方网站下载最新版本的 Cassandra,在本文写作时最新版本的 Cassandra 为 3.11.4。Apache Cassandra 可以在 Linux、Unix、Mac OS 以及 Windows 上进行安装,为了简便起见,本文以 CentOS 为例进行介绍。 如果想及时了 解Spark、Had 下载、安装并启动 Cassandra 因为本文只是简单介绍 Apache Cassandra 的使用,所以本文仅安装单机版的 Cassandra,在生 产环境下应该部署成分布式模式。可以使用下面的命令下载和解压相关的压缩文件: $ wget http://mirror.bit.edu.cn/apache/cassandra/3.11.4/apache-cassandra-3.11.4-bin0 码力 | 11 页 | 0 Bytes | 1 年前3Apache Cassandra™ 10 Documentation February 16, 2012
Apache Cassandra™ Documentation February 16, 2012 © 2012 DataStax. All rights reserved. Apache,!Apache!Cassandra,!Apache!Hadoop,!Hadoop!and!the!eye!logo! are!trademarks!of!the!Apache!Software!Foundation Apache Cassandra 1.0 Documentation 1 Introduction to Apache Cassandra 1 Getting Started with Cassandra 1 Java Prerequisites 1 Download the Software 1 Install the Software 1 Start the Cassandra Server Server 1 Login to Cassandra 1 Create a Keyspace (database) 1 Create a Column Family 2 Insert, Update, Delete, Read Data 2 Getting Started with Cassandra and DataStax Community Edition 2 Installing a0 码力 | 141 页 | 2.52 MB | 1 年前3OpenShift Container Platform 3.11 扩展和性能指南
PLATFORM 的建议 9.3. 集群指标的容量规划 9.4. 扩展 OPENSHIFT CONTAINER PLATFORM 指标 POD 9.4.1. 先决条件 9.4.2. 扩展 Cassandra 组件 第 第 10 章 章 扩 扩展 展 CLUSTER MONITORING OPERATOR 10.1. 概述 10.2. 针对 OPENSHIFT CONTAINER PLATFORM pod 和 11000 个 pod 分别被监控,Cassandra 数据库会在下表中所示的速度增长: 表 表 9.1. Cassandra 基于集群中的 基于集群中的节 节点 点/pod 数量的数据 数量的数据库 库存 存储 储要求 要求 节 节点数量 点数量 Pod 数 数 Cassandra 存 存储 储增 增 长 长速度 速度 Cassandra 每天增 每天增 长 长存 存储 储 每周增 每周增 每周增长 长的 的 Cassandra 存 存储 储 210 10500 每小时 500 MB 15 GB 75 GB 990 11000 每小时 1 GB 30 GB 210 GB 在上个计算中,预计大小大约有 20% 增加了开销,以确保存储要求不会超过计算的值。 如果 METRICS_DURATION 和 METRICS_RESOLUTION 值保持在默认值(7 天和 15 秒),则安全地0 码力 | 58 页 | 732.06 KB | 1 年前3Spring Boot 2.0.0.M4 Reference Guide
Elasticsearch using Spring Data Spring Data Elasticsearch repositories Cassandra Connecting to Cassandra Spring Data Cassandra repositories Couchbase Connecting to Couchbase Spring Data Couchbase repositories spring-boot-starter- data-cassandra Starter for using Cassandra distributed database and Spring Data Cassandra Pom spring-boot-starter- data-cassandra-reactive Starter for using Cassandra distributed database database and Spring Data Cassandra Reactive Pom spring-boot-starter- data-couchbase Starter for using Couchbase document- Pom Name Description Pom oriented database and Spring Data Couchbase spring-boot-starter-0 码力 | 583 页 | 501.03 KB | 1 年前3Spring Boot 2.0.0.M3 Reference Guide
Elasticsearch using Spring Data Spring Data Elasticsearch repositories Cassandra Connecting to Cassandra Spring Data Cassandra repositories Couchbase Connecting to Couchbase Spring Data Couchbase repositories spring-boot-starter- data-cassandra Starter for using Cassandra distributed database and Spring Data Cassandra Pom spring-boot-starter- data-cassandra-reactive Starter for using Cassandra distributed database database and Spring Data Cassandra Reactive Pom spring-boot-starter- data-couchbase Starter for using Couchbase document- Pom Name Description Pom oriented database and Spring Data Couchbase spring-boot-starter-0 码力 | 590 页 | 513.07 KB | 1 年前3Spring Boot 2.5.3 Reference Documentation
180 7.12.6. Cassandra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Connecting to Cassandra. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Spring Data Cassandra Repositories. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 Auto-configured Data Cassandra Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 692 页 | 13.67 MB | 1 年前3Spring Boot 2.5.10 Reference Documentation
184 7.12.6. Cassandra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Connecting to Cassandra. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Spring Data Cassandra Repositories. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 Auto-configured Data Cassandra Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 695 页 | 13.72 MB | 1 年前3Spring Boot 2.5.5 Reference Documentation
180 7.12.6. Cassandra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Connecting to Cassandra. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Spring Data Cassandra Repositories. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 Auto-configured Data Cassandra Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 692 页 | 13.68 MB | 1 年前3
共 458 条
- 1
- 2
- 3
- 4
- 5
- 6
- 46