After I add the thift libs to CLASS_PATH , it's failing with following error. 

/stress.py: line 21: have_multiproc: command not found
./stress.py: line 22: try:: command not found
./stress.py: line 23: from: command not found
./stress.py: line 24: from: command not found
./stress.py: line 25: Thread.isAlive: command not found
./stress.py: line 26: have_multiproc: command not found
./stress.py: line 27: except: command not found
./stress.py: line 28: from: command not found
./stress.py: line 29: from: command not found
./stress.py: line 30: from: command not found
./stress.py: line 31: from: command not found
./stress.py: line 32: import: command not found
./stress.py: line 33: from: command not found
./stress.py: line 34: from: command not found
./stress.py: line 36: from: command not found
./stress.py: line 37: from: command not found
./stress.py: line 38: from: command not found
./stress.py: line 39: from: command not found
./stress.py: line 41: try:: command not found
./stress.py: line 42: from: command not found
./stress.py: line 43: from: command not found
./stress.py: line 44: except: command not found
./stress.py: line 46: syntax error near unexpected token `('
./stress.py: line 46: `    L = 
os.path.abspath(__file__).split(os.path.sep)[:-3]'







________________________________
From: SSam <to_sam...@yahoo.com>
To: user@cassandra.apache.org
Sent: Wed, August 4, 2010 6:04:49 PM
Subject: Re: stress.py


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.schul...@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


      

Reply via email to