I tried running with the 0.7 version and get this error:

 

Buildfile: build.xml

 

gen-thrift-py:

     [echo] Generating Thrift Python code from /home/ubuntu/apache-cassandra-0.7.0/interface/cassandra.thrift ....

     [exec] [WARNING:/home/ubuntu/apache-cassandra-0.7.0/interface/cassandra.thrift:375] Constant strings should be quoted: ConsistencyLevel.ONE

     [exec]

     [exec]

     [exec] [FAILURE:/home/ubuntu/apache-cassandra-0.7.0/interface/cassandra.thrift:375] type error: const "consistency_level" was declared as enum

 

BUILD FAILED

/home/ubuntu/apache-cassandra-0.7.0/build.xml:250: exec returned: 1

 

Total time: 0 seconds

 

Thank you,

Shan (Susie) Lu, Accenture Tech Labs SV

email shan.lu@accenture.com

 

From: Brandon Williams [mailto:driftx@gmail.com]
Sent: Wednesday, February 02, 2011 1:18 PM
To: user@cassandra.apache.org
Subject: Re: py_stress error in Cassandra 0.7

 

As the README suggests, you need to run ant gen-thrift-py first.

On Wed, Feb 2, 2011 at 2:53 PM, <shan.lu@accenture.com> wrote:

Hi,

 

I am trying to get the py_stress to work in Cassandra 0.7. I keep getting this error:

 

ubuntu@ip-10-114-85-218:~/apache-cassandra-0.7.0/contrib/py_stress$ python stress.py

Traceback (most recent call last):

  File "stress.py", line 520, in <module>

    make_keyspaces()

  File "stress.py", line 185, in make_keyspaces

    cfams = [CfDef(keyspace='Keyspace1', name='Standard1', column_metadata=colms),

NameError: global name 'CfDef' is not defined

 

Any suggestions?

 

Thanks,

Shan (Susie) Lu,  Analyst

Accenture Technology Labs - Silicon Valley

cell  +1 425.749.2546   

email shan.lu@accenture.com

 

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

 

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.