• 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 apache avro could not be installed , apache avro install , avro java install , installing apache avro , installing avro on ubuntu

This Article Has Been Shared 651 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • Difference Between Data Warehouse And Data Lake

    What Is The Difference Between Data Warehouse And Data Lake? Data warehouses is four decade old established concept. Data lake is a new idea.

  • How To Install Apache NiFi On Ubuntu 16.04 LTS

    Apache NiFi Enables Automation of Real Time Data Flow Between Systems. Here Is How To Install Apache NiFi On Ubuntu 16.04 LTS on Cloud Server.

  • Install Apache TinkerPop (Gremlin Server) With PHP Client

    Here Is How To Install Apache TinkerPop (Gremlin Server) With PHP Client on Server. TinkerPop is graph computing framework offering 3 parts.

  • What is Predictive Analytics?

    What is Predictive Analytics? Predictive analysis encompasses a variety of data-based knowledge to make predictive assumptions about the future events.

  • Install Apache Gearpump On localhost (Ubuntu, Windows 10 Bash, Mac)

    Apache Gearpump is a real-time big data streaming engine, it is event/message based. Here is How to Install Apache Gearpump On localhost or Cloud Server.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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

  • CAP Theorem Explained January 28, 2021
  • A.I. Bingo Game for Teaching A.I. January 27, 2021
  • Blackjack Strategies, AI and Cognitive Science January 27, 2021
  • Wi-Fi for Old House With Thick Walls January 26, 2021
  • What is Inertial Navigation System? January 25, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "How To Install Apache Avro On Ubuntu Running Apache Hadoop," in The Customize Windows, June 11, 2018, January 28, 2021, https://thecustomizewindows.com/2018/06/how-to-install-apache-avro-on-ubuntu-running-apache-hadoop/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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