• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Install Apache Avro On Ubuntu Running Apache Hadoop

By Abhishek Ghosh June 11, 2018 10:36 pm Updated on June 11, 2018

How To Install Apache Avro On Ubuntu Running Apache Hadoop

Advertisement

Apache Avro is a Framework Which Supports RPC and Data Serialization – it uses RPC calls to send data. For this guide, at least you need have Apache Hadoop installed and running on the server. We have guides to install Apache Hadoop on single cloud server. Here is How To Install Apache Avro On Ubuntu Running Apache Hadoop. Another point to mention is that, Apache Avro API’s several languages – Java, C, C++, C#, Python and Ruby. Other two comparable frameworks are Protocol buffers (by Google) and Thrift (by Apache). Schema is not stored in Avro and has rich schema resolution capabilities probably make difference. Here is official website of Apache Avro and GitHub repo :

Vim
1
2
http://avro.apache.org/
https://github.com/apache/avro

How To Install Apache Avro On Ubuntu Running Apache Hadoop

 

How To Install Apache Avro On Ubuntu

 

When Apache Hadoop is already installed, the work becomes easy as prerequisites are already present. Avro uses CMake as its build manager. Avro depends on the Jansson JSON parser. So we need to make sure they are installed :

Vim
1
2
apt update -y && apt upgrade -y
apt install build-essential libjansson-dev asciidoc source-highlight

Test version of gcc and make :

Advertisement

---

Vim
1
2
gcc -v
make -v

Please read source-highlight‘s documentation in case you need more advanced usage. Ubuntu has problem with following source-highlight‘s documentation to combine with less. Avro basically needs :

avro-mapred-x.y.z-hadoop2.jar
avro-tools-x.y.z.jar

…. above jar files in the classpath. These jar files contain all the classes for compiler, hadoop, mapred, mapreduce packages. Official repo of US Mirror of Apache is at :

Vim
1
http://www-us.apache.org/dist/avro/

Download avro-1.8.1.tar.gz or newer version. Then :

Vim
1
2
tar -xzvf avro-1.8.2.tar.gz
cd avro-1.8.2

First Way :

Vim
1
2
3
4
sudo python setup.py install
$ python
>>> import avro
# should not raise ImportError

Second Way :

Vim
1
2
3
4
5
6
7
8
9
10
mkdir build
cd build
cmake .. \
 
        -DCMAKE_INSTALL_PREFIX=$PREFIX \
 
        -DCMAKE_BUILD_TYPE=RelWithDebInfo
make
make test
make install

Third Way :

Go to $HADOOP_HOME/share/hadoop/common/lib directory and check whether already same version is present.

Copy avro-mapred-x.y.z-hadoop2.jar into $HADOOP_HOME/share/hadoop/tools/lib and $HADOOP_HOME/share/hadoop/common/lib directories. Add the above directory path to classpath in .bashrc file.

Vim
1
2
3
4
5
6
cp avro-mapred-1.8.2-hadoop2.jar avro-tools-1.8.2.jar $HADOOP_HOME/share/hadoop/tools/lib/
cp avro-mapred-1.8.2-hadoop2.jar $HADOOP_HOME/share/hadoop/common/lib/
nono ~/.bashrc
####
export CLASSPATH="$HADOOP_HOME/share/hadoop/tools/lib/*.jar:$CLASSPATH"
export PATH="$CLASSPATH:$PATH"

Tagged With bashrc ubuntu avro , apache avro could not be installed , apache avro install , apache avro tools for windows , avro java install , install apache avro windows , installing apache avro , installing avro on ubuntu
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Install Apache Avro On Ubuntu Running Apache Hadoop

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Install Apache Hadoop on Ubuntu on Single Cloud Server Instance

    Here is How Install Apache Hadoop on Ubuntu on Single Cloud Server Instance in Stand-Alone Mode With Minimum System Requirement and Commands.

  • Installing Local Data Lake on Ubuntu Server : Part 1

    Here is Part 1 of Installing Local Data Lake on Ubuntu Server With Hadoop, Spark, Thriftserver, Jupyter etc To Build a Prediction System.

  • Integration of Apache Hadoop With OpenStack Swift

    The Topic Integration of Apache Hadoop With OpenStack Swift Is Not Exactly New. You Can Follow Our Guide Specially For Handling OpenStack.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy