incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SSam <to_sam...@yahoo.com>
Subject Re: stress.py
Date Wed, 04 Aug 2010 22:04:49 GMT
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



      
Mime
View raw message