• 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 Edgent on Raspberry Pi 3 B+

By Abhishek Ghosh June 17, 2018 6:23 am Updated on June 17, 2018

How To Install Apache Edgent on Raspberry Pi 3 B+

Advertisement

Apache Edgent is for edge devices to analyze collected data by the device. Apache Edgent is a programming model and micro-kernel style runtime which can be embedded in gateways which makes it easy to process sensor streams on edge devices like Raspberry Pi and run local analytics, then send only useful information to server. Apache Edgent’s old name is Apache Quarks. The tool is excellent for combining Big Data and IoT but the project has horrible documentation. They have updated building and old way of using Ant and Gradle tooling is no longer functional. Developers of Edgent need to create a new workspace instead of reusing Gradle-based Edgent workspaces. Here is How To How To Install Apache Edgent on Raspberry Pi 3 B+.

Edgent communicates with the following message hubs:

  1. MQTT – The messaging standard for IoT
  2. Apache Kafka – An enterprise-level message bus
  3. Custom message hubs
  4. IBM Watson IoT Platform (cloud-based service on the top of MQTT)

We have Apache Kafka an MQTT as “OPEN & FREE” option. The project is probably developed by IBM on hope of IBM Watson on Raspberry Pi. Do not get angry for less documentation – we are enjoying free stuff. With present version, you actually can avoid installing the thing on Raspberry Pi. Installing on Pi is for fun or demo or fallback or whatever. Most importantly, we can do it on Android devices.

Advertisement

---

How To Install Apache Edgent on Raspberry Pi 3 B

 

How To Install Apache Edgent on Raspberry Pi 3 B+

 

Please read the guide first before running commands. We have given alternate ways. You probably can practice on virtualbox to test then do in real. I do not think that Apache Edgent is production ready to run on hardware to mess it up.

We are using headless Raspberry Pi. We simply need to fork the Apache Edgent repository. We need to have these additional development software tools :

  • Java 7 or Java 8
  • Maven : Maven in the form of maven-wrapper or an installed version of Maven.

For developing Edgent applications we can utilize Edgent SDK/runtime jars and package application artifacts for deploying to an edge device or gateway for execution.

We know how to install Maven on Ubuntu server. For Raspberry Pi, you can actually install Maven with apt-get, however, that will install all kinds of related things we do not need for this job. Of course that is easy.

Update :

Vim
1
apt update -y && apt upgrade -y

Remove open JDK 7 :

Vim
1
sudo apt-get purge openjdk*

Install version 8 :

Vim
1
sudo apt-get install oracle-java8-jdk

To about fuss with Java, you may skip above steps and look at this :

Vim
1
http://pi4j.com/

Run :

Vim
1
2
3
4
curl -s get.pi4j.com | sudo bash
Then, add this to your bashrc file so it is always set:
export PI4J_LIB=/opt/pi4j/lib/
echo "export PI4J_LIB=/opt/pi4j/lib/" >> ~/.bashrc

Update :

Vim
1
apt update -y && apt upgrade -y

As we told you, you can install maven with apt :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
apt install maven<>
 
If you want to install from binary, that way will be like this :
 
<pre>
# download latest binary from maven website
http://www.mirrorservice.org/sites/ftp.apache.org/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
# extract to /opt
cd /opt
tar -xzvf /path/to/apache-maven-3.2.5-bin.tar.gz
vi /etc/profile.d/maven.sh
# add
export M2_HOME=/opt/apache-maven-3.2.5
export PATH=$PATH:$M2_HOME/bin
# save & quit

CD somewhere like /home/pi/Downloads and download the tagged release version :

Vim
1
https://github.com/apache/incubator-edgent

Your steps will be like below :

Vim
1
2
3
4
tar -xzvf apache-edgent-X.X.X-incubating-XXX.tgz
Set EDGENT Home to <edgent_dir>/java8:
export EDGENT=<edgent_dir>/java8
echo "export EDGENT=<edgent_dir>/java8" >> ~/.bashrc

If you want with Maven then install the Edgent Java8 jars in the local maven repository :

Vim
1
2
3
4
./mvnw clean install  # -DskipTests to skip tests
# build the Edgent Java 7 and Android platform jars
./mvnw clean install -DskipTests -Pplatform-java7,platform-android
./mvnw clean install -Djava8.home=$JAVA_HOME -Ptoolchain,platform-java7,platform-android

I felt, that maven way has problem of editing toolchains.xml. You can read official doc. I bet, at this moment, this is best guide showing ways. I have not done much research on this Apache Edgent, but I am sure that it is interesting to send data to Apache Kafka running on own server.

Tagged With how to install apache in rpi 3 , how to launch apache on raspberry pi3 , install Apache Edgent ubuntu , install maven on raspberry pi , install maven on raspberry pi 3

This Article Has Been Shared 736 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 Edgent on Raspberry Pi 3 B+

  • IBM Analytics Demo Cloud : Free Hadoop, Ambari With SSH

    IBM Analytics Demo Cloud is intended to learn Hadoop, Ambari, BigSQL free of cost with SSH access & web console. Here is how to get started.

  • Create Data Science Environment on Cloud Server With Docker

    Here Are the Steps, Commands to Create Data Science Environment on Cloud Server For Data Analysis Starting With a Blank Server With SSH.

  • How to Be More Proactive With Your Data

    Some organizations will only use data scientists and analysts to handle their data initiatives, while others will give access to multiple people across various departments. Let us take a look at how companies can be more proactive with their data.

  • Chart, Data Visualization in WordPress Posts From SQL & SQL Queries

    Displaying SQL result data may be a need. Here is How to Get Chart, Data Visualization in WordPress Posts From SQL Queries in Easy Way.

  • How to Install Apache DataFu (DataFu Pig, DataFu Hourglass)

    Here is Guide on How to Install Apache DataFu on Debian System. Apache DataFu is a collection of well-tested libraries for data mining and statistics.

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 (22.1K 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

  • Why You Need A Big Data Consultant May 15, 2022
  • The Connection Between AI And Online Slots May 13, 2022
  • How To Choose Your Niche As An Instagram Influencer May 12, 2022
  • How to Choose a Powerful Domain Name for Your New Venture May 12, 2022
  • How To Leverage Big Data In Social Media May 11, 2022

About This Article

Cite this article as: Abhishek Ghosh, "How To Install Apache Edgent on Raspberry Pi 3 B+," in The Customize Windows, June 17, 2018, May 16, 2022, https://thecustomizewindows.com/2018/06/how-to-install-apache-edgent-on-raspberry-pi-3-b/.

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 Privacy Policy.

PC users can consult Corrine Chorney for Security.

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

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

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