1

i am trying to use apache thrift to connect cassandra by PHP.

after i followed these steps, finally i run this command:

thrift -gen php interface/cassandra.thrift

but an error occured :

[FAILURE:arguments:1] Could not open input file with realpath: interface/cassandra.thrift

I cannot find where is the cassandra.thrift file ?

is there anybody that knows where is this file or what is wrong with my proccess ?

operating system ubuntu command path : ext/thrift/

thrift -r --gen php tutorial.thrift 

works fine, but cassandra.thrift is not.

mst
  • 466
  • 5
  • 17

1 Answers1

1

Looks like you can get the file from the cassandra documentation...

https://wiki.apache.org/cassandra/ThriftInterface

https://svn.apache.org/repos/asf/cassandra/trunk/interface/cassandra.thrift

fire
  • 21,383
  • 17
  • 79
  • 114
  • should i get all cassandar folder or just cassandra.thrift file ? if i have to use cassandra folder, where should i place it ? – mst Aug 07 '15 at 14:21
  • no the "interface/cassandra.thrift" is just the path to the file, if its in the same folder as you are currently in then just run `thrift -gen php cassandra.thrift` – fire Aug 07 '15 at 14:59