Peter, Thank you so much for reply.

I am not much familiar with python.

I have executed the commands mentioned in your reply.

Now it's failing with following error. Do I have put thrift.jar in  JAVA CLASSPATH.
----------------------------
Traceback (most recent call last):
  File "stress.py", line 36, in <module>
    from thrift.transport import TTransport
ImportError: No module named thrift.transport
---------------------------------------------------

Thanks,
SSam


From: Peter Schuller <peter.schuller@infidyne.com>
To: user@cassandra.apache.org
Sent: Wed, August 4, 2010 5:53:35 PM
Subject: Re: stress.py

> Can somebody please give steps to run cassandra stess.py  program.

Assuming you have the thrift compiler installed, something like (from
memory, not tested):

cd contrib/py_stress
thrift --gen py:new ../../interface/cassandra.thrift
export PYTHONPATH=$(pwd)/gen-py
python stress.py

--
/ Peter Schuller