• 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 Run Apache SAMOA with Apache S4

By Abhishek Ghosh June 10, 2018 12:00 am Updated on June 10, 2018

How to Run Apache SAMOA with Apache S4

Advertisement

In our earlier guide, we described how to install Gradle on Ubuntu 18.04 LTS. Here Are the Steps on How to Run Apache SAMOA with Apache S4. In this guide, we will use that Gradle. Full Form of S4 is Simple Scalable Streaming System. It is a pluggable platform to develop applications. Apache S4 is a distributed, scalable, pluggable platform to allow the programmers to develop applications for processing continuous, unbounded streams of data. Apache SAMOA is a distributed streaming machine learning (ML) framework. Here are are official sites of Apache SAMOA with Apache S4 :

Vim
1
2
https://samoa.incubator.apache.org/index.html
https://github.com/apache/incubator-s4

Apache S4 is a retired project on Apache incubator. S4 applications can be deployed on YARN for easy deployment and automatic failover. S4 integration is tested with Hadoop/YARN. YARN allowsvarious kinds of applications in addition to MapReduce applications. We need Zookeeper for it.

How to Run Apache SAMOA with Apache S4

 

How to Run Apache SAMOA with Apache S4

 

You’ll get 2013’s Apache S4 :

Advertisement

---

Vim
1
https://github.com/apache/incubator-s4/releases

wget it and uncompress :

Vim
1
2
3
4
5
6
7
wget https://github.com/apache/incubator-s4/archive/0.6.0-Final.tar.gz
ls -al
tar -xzvf 0.6.0-Final.tar.gz
ls al
# delete the tar archive
rm 0.6.0-Final.tar.gz
# cd to that directory

From the root directory of the S4 project:

Vim
1
2
./gradlew install
./gradlew s4-tools:installApp

The above commands will build the packages and install the artifacts in the local maven repository and build the tools will help you so that you can work with the platform through the s4 command.

Vim
1
2
3
4
5
# change version numbers, path
# set the Apache S4 environment variable
export S4_HOME=/foo/bar/apache-s4-0.6.0-incubating-src
# add the S4_HOME to the system PATH
export PATH=$PATH:$S4_HOME

We need to compile Apache SAMOA for Apache S4. You’ll see that there is list of needed S4 dependencies for executing SAMOA with Apache S4. We can simply clone the repository and install Apache SAMOA :

Vim
1
2
3
git clone http://git.apache.org/incubator-samoa.git
cd incubator-samoa
mvn -Ps4 package

The jars for SAMOA will be in :

Vim
1
target/SAMOA-<variant>-<version>-SNAPSHOT.jar

Find bin/samoa-s4.properties file and do these kind of changes :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Zookeeper Server
zookeeper.server=localhost
zookeeper.port=2181
# Apache S4 also distributes the application via HTTP
# therefore the server and port which contains
# the S4 application must be provided
# Simple HTTP Server providing the packaged S4 jar
http.server.ip=localhost
http.server.port=8000
# Apache S4 uses the concept of logical clusters to
# define a group of machines, which are identified by
# an ID and start serving on a specific port.
# Name of the S4 cluster
cluster.name=cluster
cluster.port=12000
# SAMOA can be deployed on a single machine using only
# one resource or in a cluster environments.
# The following property can be defined to deploy as a
# local application or on a cluster.
# Deployment strategy
samoa.deploy.mode=local

The execution syntax is :

Vim
1
bin/samoa <platform> <jar-location> <task & options>

= s4 or storm.
= absolute path to the platform specific jar file
= name of a known task and the options belonging to that task

This is an example command :

Vim
1
bin/samoa S4 target/SAMOA-S4-0.0.1-SNAPSHOT.jar "ClusteringEvaluation"

This Article Has Been Shared 322 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 Run Apache SAMOA with Apache S4

  • 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

  • Cutting Out The Coding: Serverless Computing In Action May 24, 2022
  • Types of Blackjack Variants: Discover the Different Versions of the Game May 23, 2022
  • How Cloud, Robotics And Sensor Technologies Are Changing The Business Landscape May 23, 2022
  • Modernizing Your Business With a Hybrid Cloud Strategy May 22, 2022
  • Big Data in Sports May 20, 2022

About This Article

Cite this article as: Abhishek Ghosh, "How to Run Apache SAMOA with Apache S4," in The Customize Windows, June 10, 2018, May 24, 2022, https://thecustomizewindows.com/2018/06/how-to-run-apache-samoa-with-apache-s4/.

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