Steps to Install Apache Thrift on Ubuntu 14.04

Steps to Install Apache Thrift on Ubuntu 14.04

Software framework written in C++ is all that Apache Thrift is. Although Facebook originally created it in 2007, the Apache Software Foundation now hosts it as an Open Source project (ASF). With the use of software, servers on a network can communicate with one another to request services using a protocol called RPC, or remote procedure call. The entire technique requires no network information from it.

1. 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. Now, Install Java JDK

Check whether or not the Java JDK package is installed. The command shown below can be used to confirm:

# java --version

If the Java JDK is not set up. Please use the following command to install Java JDK:

# apt-get install openjdk-7-jre 
# apt-get install openjdk-7-jdk

In this way, you have installed the dependencies.

3. Installation

Download the most recent version of Apache Thrift to your local directory from the company’s website:

# http://www.us.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz

Now, Extract the tar file:

# tar -xvf thrift-0.9.3.tar.gz

Now you can install the thrift 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

As a result, the installation process is finished. The command shown below can be used to check the installation:

# thrift -version
Thrift version 0.9.3

In this way, you have completed the installation of Apache Thrift.

Was this article helpful to you? If you continue having problems with the above outlined, please contact the eTechSupport Team.

Follow us on FacebookTwitter, and LinkedIn for additional information.


Recommended Posts

Get your free trial now