• 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 , apache avro tools for windows , avro java install , install apache avro windows , installing apache avro , installing avro on ubuntu

This Article Has Been Shared 786 Times!

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

  • 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

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

  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023
  • What is COB LED? How LED Chip On Board Works January 20, 2023

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 27, 2023, https://thecustomizewindows.com/2018/06/how-to-install-apache-avro-on-ubuntu-running-apache-hadoop/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT