[Cassandra][Thrift] [Python] Cassandra stress test tool

房东的猫 提交于 2019-11-26 18:23:57

 

在Cassandra安裝 python 的 stress test tool 真的是有夠麻煩,把步驟寫起來免得忘記。

1. 安裝boost C 函式庫

2. 安裝Thrift

 3. 產生python語言連接Cassandra 的 Interface

sudo thrift --gen py /usr/local/dse-2.1/interface/cassandra.thrift

會出現 gen-py的 folder如下:

[vl77@STIMCAS01 interface]$ ls
cassandra.thrift  common.thrift  dse.thrift  gen-py  hdfs.thrift  jobtracker.thrift
[vl77@STIMCAS01 interface]$ ll
total 76
-rw-r--r-- 1 cassandra cassandra 28213 Jun 14  2012 cassandra.thrift
-rw-r--r-- 1 cassandra cassandra  3346 Jun 14  2012 common.thrift
-rw-r--r-- 1 cassandra cassandra  4510 Jun 14  2012 dse.thrift
drwxr-xr-x 3 root      root       4096 Jan  8 11:37 gen-py
-rw-r--r-- 1 cassandra cassandra 15882 Jun 14  2012 hdfs.thrift
-rw-r--r-- 1 cassandra cassandra 13996 Jun 14  2012 jobtracker.thrift
[vl77@STIMCAS01 interface]$

 

转载于:https://www.cnblogs.com/vincentmylee/archive/2013/01/08/2850837.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!