您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 销售管理 > Cassandra与HBase系统架构比对
Cassandra&HBaseComparison郭鹏盛大在线新浪微博:@逖靖寒SACC2011SACC2011FunctionImplementWhat’sNextAgendaSACC2011SACC2011FunctionImplementWhat’sNextAgendaSACC2011SACC2011DataModelKeyspaceRowColumnFamilyColumnNameColumnValueTimestampKS-1Row-1cfName-1colName-1colValue-112345678KS-1Row-1cfName-1colName-2colValue-222345638KS-1Row-1cfName-2colName-1colValue-112445678KS-1Row-2cfName-1colName-1colValue-112345678KS-2Row-1cfName-1colName-1colValue-112345678StandardColumnFamilySACC2011SACC2011DataModelKeyspaceRowColumnFamilySuperColumnNameColumnNameColumnValueTimestampKS-1Row-1cfName-1sColName-1colName-1colValue-112345678KS-1Row-1cfName-1sColName-1colName-2colValue-222345638KS-1Row-1cfName-2sColName-2colName-1colValue-112445678SuperColumnFamilySACC2011SACC2011DataModelTableRowColumnFamilyColumnNameColumnValueTimestampVersionTab-1Row-1cfName-1colName-1colValue-112345678V-1Tab-1Row-1cfName-1colName-2colValue-222345638V-2Tab-1Row-1cfName-1colName-2colValue-212445678V-1Tab-1Row-2cfName-1colName-1colValue-112345678V-1Tab-2Row-1cfName-1colName-1colValue-112345678V-1SACC2011SACC2011BasicAPICRUDConsistencyLevelONEQUORUMALLRangeQuery:RowTokenSACC2011SACC2011AdvancedAPIAuthorization&AuthenticationSecondaryIndexOnlineSchemaUpdateCounterMapReduceCQL(CassandraQueryLanguage)SACC2011SACC2011CRUDScan:RowBasicAPISACC2011SACC2011AdvancedAPILockPutcheckAndPutDeletecheckAndDeleteLimitedOnlineSchemaUpdateCounterMapReduceFilterSACC2011SACC2011FunctionImplementWhat’sNextAgendaSACC2011SACC2011SystemArchitectureCommitlogAPPCF-NRAMMemtableSSTableCommitlogAPPCF-1MemtableSSTableSystemCFLocalDiskCassandraServer1CassandraServerN…SACC2011SACC2011SystemArchitectureSACC2011SACC2011FileSystemSACC2011SACC2011ConsistencyServerNo.RowKeyListCassandra-01key1,key2,key3,key4Cassandra-02key2,key3,key4,key5Cassandra-03key3,key4,key5,key6ServerNo.RowKeyListRegionServer-01key1,key2,key3,key4RegionServer-02key5,key6,key7,key8RegionServer-03key9,key10,key11,key12SACC2011SACC2011LocationSACC2011SACC2011LocationSACC2011SACC2011StorageFileSACC2011SACC2011CacheCacheValueRowCacheKeyIndexKeyCacheKey/ValueCacheValueBlockCacheDataBlockSACC2011SACC2011BulkLoaderBinaryMemtableHRegionInterface.bulkLoadHFile•TableName•RegionName•CFNameLoadIncrementalHFiles•HFilePath•TableNamenodetoolcleanupsstableloaderSACC2011SACC2011LoadBalancenodetoolmovetokenbalancermoveregionNameserverNamesplitregionNameSACC2011SACC2011FunctionImplementWhat’sNextAgendaSACC2011SACC2011EnhancedHadoopandHivedistributionthatutilizesCassandraforallofitscoreservices.IntegratedwithHadoopMapReduceandHiveProvidinganHDFScompatiblestoragelayerpoweredbyCassandraBriskSACC2011SACC2011ApplicationStackSACC2011SACC2011DeploySACC2011SACC2011CoprocessorMasterObserverRegionObserverEndPointSACC2011SACC2011OpenFlushClose…PreOpenPostOpen……HMasterMasterObserver……SACC2011SACC2011RegionObserverGetPutScan…PreGetPostGet…………RegionServerSACC2011SACC2011EndPointDefineyourownextensionstoHBaseRPCtransactionsexchangedbetweenclientsandtheregionservers.SACC2011SACC2011HBaseaccesscontrol:providesbasicaccesscontrolforHBaseColumnaggregate:SQL-likesum(),avg(),max(),min(),etc.RegionlevelindexingHBasetable,regionaccessstatisticApplicationsSACC2011SACC2011KeyValueKeyScanColumn动态添加排序二级索引使用场景SACC2011SACC2011从零开始快速开发快速部署简单的安全认证Cassandra适用场景SACC2011SACC2011已有Hadoop集群要求数据一致性高效的数据平衡服务端代码执行HBase适用场景SACC2011SACC2011Thanks!SACC2011SACC2011
本文标题:Cassandra与HBase系统架构比对
链接地址:https://www.777doc.com/doc-5966345 .html