incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pob <peterob...@gmail.com>
Subject read failed?
Date Wed, 27 Apr 2011 09:56:19 GMT
Hello,

im expecting this problem:

with c-cli:
get
 messagesContent['558a512f30a46f55e75e63f2f816f7435283269f92070618ba9213c0bfac730f'];
Returned 33 results.





within pycassa code:

server_list=['SERVER:9160',],
    prefill=False, pool_size=15, max_overflow=10, max_retries=-1, timeout=5,
pool_timeout=200)

batch = Mutator(pool, queue_size=50,
write_consistency_level=ConsistencyLevel.QUORUM)

messagesContent = pycassa.ColumnFamily(pool, 'messagesContent',
write_consistency_level=ConsistencyLevel.QUORUM,
read_consistency_level=ConsistencyLevel.QUORUM)


    columnsTotal =
messagesAttachment.get_count('558a512f30a46f55e75e63f2f816f7435283269f92070618ba9213c0bfac730f')
    att =
messagesAttachment.get('558a512f30a46f55e75e63f2f816f7435283269f92070618ba9213c0bfac730f',
column_count=parts, column_start='2', column_finish='',
read_consistency_level=ConsistencyLevel
.QUORUM)


print columntsTotal
21

print att['10']

KeyError: '10'





Thanks

Mime
View raw message