1. Introduction
Apache Thrift is just a software framework written in C++. It was initially developed in 2007 by Facebook but now it is an Open Source project in Apache Software Foundation (ASF). The RPC is Remote Procedure Call is a type of protocol, requesting a service from one server to another server in a network using programs. Tt does not need any kind of network details for the whole process. In this article, We are going to install Apache Thrift.
Install all the dependencies
# apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev ant
2. Install Java JDK
Check whether the Java JDK package is installed or not. You may use the below command to verify :
# java --version
If the Java JDK is not installed. Please the command to install Java JDK :
# apt-get install openjdk-7-jre # apt-get install openjdk-7-jdk
Thus we have completed installing the dependencies.
3. Installation
Download the latest version of Apache Thrift from there official site in to your local directory :
# http://www.us.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz
Extract the tar file :
# tar -xvf thrift-0.9.3.tar.gz
Now install thirift folder :
# cd thrift-0.9.3/ # ./configure thrift 0.9.3 Building C++ Library ......... : yes Building C (GLib) Library .... : no Building Java Library ........ : yes Building C# Library .......... : no Building Python Library ...... : no Building Ruby Library ........ : no Building Haxe Library ........ : no Building Haskell Library ..... : no Building Perl Library ........ : no Building PHP Library ......... : no Building Erlang Library ...... : no Building Go Library .......... : no Building D Library ........... : no Building NodeJS Library ...... : no Building Lua Library ......... : no C++ Library: Build TZlibTransport ...... : yes Build TNonblockingServer .. : yes Build TQTcpServer (Qt4) .... : no Build TQTcpServer (Qt5) .... : no Java Library: Using javac ............... : javac Using java ................ : java Using ant ................. : /usr/bin/ant # make # make install
Thus the installation process is completed. We can verify the installation using the command below :
# thrift -version Thrift version 0.9.3
4. Conclusion
Thus we have completed the installation of Apache Thrift.