• 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"

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

  • 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.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • How To Install Apache Mesos With Marathon On Ubuntu 16.04 LTS

    Here Is How To Install Apache MeOS With Marathon On Ubuntu 16.04 LTS In Order To Integrate,Manage Multiple Servers Or Multi Cloud Environment.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

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