Search code examples
cassandrathrift

Problem using the Thrift APIs


I have installed Cassandra on my Ubuntu VM and built the source. I was trying to use the Thrift APIs and it seems like the libthrift-0.5.jar in my bin is not the file that I need in order to interface with the running cassandra instance.

Is there some other way to install the Thrift JARs? I found the

/cassandra/interface/thrift

folder that has the Thrift source pertaining to the interface with Cassandra. When I tried doing an ant gen-thrift-java from the command line, I get a build failed with the following message:

Execute failed: java.io.IOException: Cannot run program "thrift" (in directory "/home/user/cassandra/interface"): java.io.IOException: error=2, No such file or directory

Can somebody give me some ideas on what do I need to do in order to work with Thrift here?

Thanks


Solution

  • You need to install Thrift

    $ cd thrift
    $ ./bootstrap.sh
    $ ./configure
    $ make
    $ sudo make install