由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 有懂bigtable ,hbase,c*的么?问一个timestamp的问题
相关主题
拿Cassandra当MQ用,证明你连Cassandra也不懂How to synchronize two computers clock?
再请教几个HBase的问题shall i call system("ifconfig eth0 ... up") or write my own code ?
简单算法问题Is there anyone familiar with NTP Time Synchronization?
Hbase new column 存储问题boost的deadline_timer要多脑残才能整出来?
拿C*当message queue用,不知道哪里面试能通过好的javascript程序员还真不多
VC++: Module-Definition (.def) Files:东海岸的NTP服务器竟然down了仨儿
linux, find command question做shadowsocks-R的作者破娃breakwa11被禁声了?
我的DBA在生成ORACLE table的时候需要一个一个column看 (转载)50伪币:请教perl代码差错的问题!多谢啦!
相关话题的讨论汇总
话题: timestamp话题: bigtable话题: hbase话题: column话题: dc
进入Programming版参与讨论
1 (共1页)
t**r
发帖数: 3428
1
有懂bigtable ,hbase,c*的么?问一个timestamp的问题
bigtable里面timestamp的用法在hbase,c*里有么?
比如:by specifiying timestamp, I can get value of latest version that is
earlier than a specified timestamp.
p*****2
发帖数: 21240
2
对于一个key吧?C*应该可以。
w**z
发帖数: 8232
3
C*每个column 有个timestamp, read return 的时候,如果cl >1,会比较timestamp of
the column from different node, in case of inconsistency, return the column
with the latest timestamp. client doesn't need to deal with the vector clock
crap. the last write wins.

【在 t**r 的大作中提到】
: 有懂bigtable ,hbase,c*的么?问一个timestamp的问题
: bigtable里面timestamp的用法在hbase,c*里有么?
: 比如:by specifiying timestamp, I can get value of latest version that is
: earlier than a specified timestamp.

g*****g
发帖数: 34805
4
You want to have the timestamp as column name for indexing purpose.

of
column
clock

【在 w**z 的大作中提到】
: C*每个column 有个timestamp, read return 的时候,如果cl >1,会比较timestamp of
: the column from different node, in case of inconsistency, return the column
: with the latest timestamp. client doesn't need to deal with the vector clock
: crap. the last write wins.

f*******t
发帖数: 7549
5
Hbase里有,get时可以指定一个timestamp

【在 t**r 的大作中提到】
: 有懂bigtable ,hbase,c*的么?问一个timestamp的问题
: bigtable里面timestamp的用法在hbase,c*里有么?
: 比如:by specifiying timestamp, I can get value of latest version that is
: earlier than a specified timestamp.

w**z
发帖数: 8232
6
not sure what he is asking. if he needs timeseries data, then use timeuuid
as part of composite column name as you said.

【在 g*****g 的大作中提到】
: You want to have the timestamp as column name for indexing purpose.
:
: of
: column
: clock

g*****g
发帖数: 34805
7
He basically wants to do range query on timestamp.

timeuuid

【在 w**z 的大作中提到】
: not sure what he is asking. if he needs timeseries data, then use timeuuid
: as part of composite column name as you said.

B*****g
发帖数: 34098
8
c*如果还没有被彻底删掉,可以用sstable2json自己慢慢找,嘿嘿

【在 t**r 的大作中提到】
: 有懂bigtable ,hbase,c*的么?问一个timestamp的问题
: bigtable里面timestamp的用法在hbase,c*里有么?
: 比如:by specifiying timestamp, I can get value of latest version that is
: earlier than a specified timestamp.

f****4
发帖数: 1359
9
timestamp怎么同步?就是ntpd也有几十~一百ms的延时。多DC下面怎么搞?
就算不把C*当queue用这return the column with the latest timestamp还是需要
timestamp是正确的才行

【在 g*****g 的大作中提到】
: You want to have the timestamp as column name for indexing purpose.
:
: of
: column
: clock

g*****g
发帖数: 34805
10
Timestamp can be marked on your application cluster. If you are doing mult-
DC and you are sensitive to ms order difference, you are probably doing it
wrong to begin with. i.e. You shouldn't do multi-DC for stock exchange.

【在 f****4 的大作中提到】
: timestamp怎么同步?就是ntpd也有几十~一百ms的延时。多DC下面怎么搞?
: 就算不把C*当queue用这return the column with the latest timestamp还是需要
: timestamp是正确的才行

相关主题
VC++: Module-Definition (.def) Files:How to synchronize two computers clock?
linux, find command questionshall i call system("ifconfig eth0 ... up") or write my own code ?
我的DBA在生成ORACLE table的时候需要一个一个column看 (转载)Is there anyone familiar with NTP Time Synchronization?
进入Programming版参与讨论
f****4
发帖数: 1359
11
好吧,我没讲清楚:C* in case of inconsistency, return the column with the
latest timestamp
C*自己解决inconsistency就是假设每个record的timestamp是sync的,这不是我应用需
要到ms精确度。
App cluster来做timestamp。你在app cluster里面怎么做同步?

【在 g*****g 的大作中提到】
: Timestamp can be marked on your application cluster. If you are doing mult-
: DC and you are sensitive to ms order difference, you are probably doing it
: wrong to begin with. i.e. You shouldn't do multi-DC for stock exchange.

g*****g
发帖数: 34805
12
app cluster 总是 hit一个 node, 自然不用同步。如果你在两个DC同时写同一个
column, 结果的确有不确定性。但通常你不在乎写的是哪个。

【在 f****4 的大作中提到】
: 好吧,我没讲清楚:C* in case of inconsistency, return the column with the
: latest timestamp
: C*自己解决inconsistency就是假设每个record的timestamp是sync的,这不是我应用需
: 要到ms精确度。
: App cluster来做timestamp。你在app cluster里面怎么做同步?

w**z
发帖数: 8232
13
In most of cases, C* generates timestamp at server side for you. Make sure
your NTP is setup correctly which is a prerequisite for C* cluster
It's not advisable to generate timestamp at client side and pass it in with
your request.

【在 f****4 的大作中提到】
: 好吧,我没讲清楚:C* in case of inconsistency, return the column with the
: latest timestamp
: C*自己解决inconsistency就是假设每个record的timestamp是sync的,这不是我应用需
: 要到ms精确度。
: App cluster来做timestamp。你在app cluster里面怎么做同步?

g*****g
发帖数: 34805
14
Hmm, looks like cql has better support for time uuid now. There's a time
server side time uuid is not available.

with

【在 w**z 的大作中提到】
: In most of cases, C* generates timestamp at server side for you. Make sure
: your NTP is setup correctly which is a prerequisite for C* cluster
: It's not advisable to generate timestamp at client side and pass it in with
: your request.

f****4
发帖数: 1359
15
我的感觉就是如果你的应用对NTP那100ms左右的误差引起的不一致很敏感的话C*就不是
你正确的选择
C*解决不一致性的时候是没办法100%保证正确的。CAP的trade off。

with

【在 w**z 的大作中提到】
: In most of cases, C* generates timestamp at server side for you. Make sure
: your NTP is setup correctly which is a prerequisite for C* cluster
: It's not advisable to generate timestamp at client side and pass it in with
: your request.

w**z
发帖数: 8232
16
Or you can try to go down the vector clock hell like Riak.

【在 f****4 的大作中提到】
: 我的感觉就是如果你的应用对NTP那100ms左右的误差引起的不一致很敏感的话C*就不是
: 你正确的选择
: C*解决不一致性的时候是没办法100%保证正确的。CAP的trade off。
:
: with

1 (共1页)
进入Programming版参与讨论
相关主题
50伪币:请教perl代码差错的问题!多谢啦!拿C*当message queue用,不知道哪里面试能通过
分布式文件存储系统,以及此基础上的分布式计算,大家有何推荐的?VC++: Module-Definition (.def) Files:
全球最受欢迎的网站使用的哪些编程语言?linux, find command question
春运这个东西,用Storm就可以轻松搞定了我的DBA在生成ORACLE table的时候需要一个一个column看 (转载)
拿Cassandra当MQ用,证明你连Cassandra也不懂How to synchronize two computers clock?
再请教几个HBase的问题shall i call system("ifconfig eth0 ... up") or write my own code ?
简单算法问题Is there anyone familiar with NTP Time Synchronization?
Hbase new column 存储问题boost的deadline_timer要多脑残才能整出来?
相关话题的讨论汇总
话题: timestamp话题: bigtable话题: hbase话题: column话题: dc