sc_ray
sc_ray

Reputation: 8043

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

Upvotes: 1

Views: 1627

Answers (1)

Schildmeijer
Schildmeijer

Reputation: 20946

You need to install Thrift

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

Upvotes: 3

Related Questions