tree: 56620e94915d3949c121865c801aea96b1093627 [path history] [tgz]
  1. src/
  2. pom.xml

How to upgrade Apache Thrift

You need to install the thrift compiler from

For linux/osx you download the .tar distro, and untar it, and then

sudo ./
export CXXFLAGS='-Os -ffunction-sections -Wl,--gc-sections -fno-asynchronous-unwind-tables -Wl,--strip-all'
sudo ./configure --without-c_glib --without-java --without-python --without-ruby --without-nodejs --disable-libs --disable-tests --disable-tutorial --disable-shared --enable-static
sudo make check
sudo make install

If its succesful, you can type

thrift --version

To display the version of the thrift compiler.

You then need to compile the sample test source for the camel-thrift component.

The sample test source is an example taken from the Thrift Java tutorial at:

cd components/camel-thrift
cd src/test/thrift
thrift -r --gen java -out ../java/ ./tutorial-dataformat.thrift
thrift -r --gen java -out ../java/ ./tutorial-component.thrift

The generate source code will override the existing.