楼主: ReneeBK
9255 58

[Ankit Jain]Mastering Apache Storm   [推广有奖]

  • 1关注
  • 62粉丝

VIP

学术权威

14%

还不是VIP/贵宾

-

TA的文库  其他...

R资源总汇

Panel Data Analysis

Experimental Design

威望
1
论坛币
49407 个
通用积分
51.8704
学术水平
370 点
热心指数
273 点
信用等级
335 点
经验
57815 点
帖子
4006
精华
21
在线时间
582 小时
注册时间
2005-5-8
最后登录
2023-11-26

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

本帖隐藏的内容

Mastering Apache Storm 2017.pdf (6.7 MB, 需要: 10 个论坛币)


  1. Mastering Apache Storm
  2. By 作者: Ankit Jain

  3. ISBN-10 书号: 1787125637
  4. ISBN-13 书号: 9781787125636
  5. Release 出版日期: 2017-09-11
  6. pages 页数: (315)
  7. List Price: $49.99


  8. Book Description

  9. Key Features
  10. Exploit the various real-time processing functionalities offered by Apache Storm such as parallelism, data partitioning, and more
  11. Integrate Storm with other Big Data technologies like Hadoop, HBase, and Apache Kafka
  12. An easy-to-understand guide to effortlessly create distributed applications with Storm

  13. Book Description
  14. Apache Storm is a real-time Big Data processing framework that processes large amounts of data reliably, guaranteeing that every message will be processed. Storm allows you to scale your data as it grows, making it an excellent platform to solve your big data problems. This extensive guide will help you understand right from the basics to the advanced topics of Storm.

  15. The book begins with a detailed introduction to real-time processing and where Storm fits in to solve these problems. You’ll get an understanding of deploying Storm on clusters by writing a basic Storm Hello World example. Next we’ll introduce you to Trident and you’ll get a clear understanding of how you can develop and deploy a trident topology. We cover topics such as monitoring, Storm Parallelism, scheduler and log processing, in a very easy to understand manner. You will also learn how to integrate Storm with other well-known Big Data technologies such as HBase, Redis, Kafka, and Hadoop to realize the full potential of Storm.

  16. With real-world examples and clear explanations, this book will ensure you will have a thorough mastery of Apache Storm. You will be able to use this knowledge to develop efficient, distributed real-time applications to cater to your business needs.

  17. What you will learn
  18. Understand the core concepts of Apache Storm and real-time processing
  19. Follow the steps to deploy multiple nodes of Storm Cluster
  20. Create Trident topologies to support various message-processing semantics
  21. Make your cluster sharing effective using Storm scheduling
  22. Integrate Apache Storm with other Big Data technologies such as Hadoop, HBase, Kafka, and more
  23. Monitor the health of your Storm cluster
  24. Contents
  25. Chapter 1. Real-Time Processing And Storm Introduction
  26. Chapter 2. Storm Deployment, Topology Development, And Topology Options
  27. Chapter 3. Storm Parallelism And Data Partitioning
  28. Chapter 4. Trident Introduction
  29. Chapter 5. Trident Topology And Uses
  30. Chapter 6. Storm Scheduler
  31. Chapter 7. Monitoring Of Storm Cluster
  32. Chapter 8. Integration Of Storm And Kafka
  33. Chapter 9. Storm And Hadoop Integration
  34. Chapter 10. Storm Integration With Redis, Elasticsearch, And Hbase
  35. Chapter 11. Apache Log Processing With Storm
  36. Chapter 12. Twitter Tweet Collection And Machine Learning
复制代码



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Mastering apache Master Storm Aster

已有 4 人评分经验 学术水平 热心指数 信用等级 收起 理由
np84 + 100 精彩帖子
kongqingbao280 + 40 精彩帖子
sfhsky + 2 精彩帖子
狂热的爱好者 + 20 + 1 + 3 + 1 精彩帖子

总评分: 经验 + 160  学术水平 + 1  热心指数 + 5  信用等级 + 1   查看全部评分

本帖被以下文库推荐

沙发
MouJack007 发表于 2017-8-21 22:46:02 |只看作者 |坛友微信交流群
  1. package com.stormadvance.storm_example;

  2. import org.apache.storm.topology.BasicOutputCollector;
  3. import org.apache.storm.topology.OutputFieldsDeclarer;
  4. import org.apache.storm.topology.base.BaseBasicBolt;
  5. import org.apache.storm.tuple.Tuple;

  6. public class SampleBolt extends BaseBasicBolt {
  7.         private static final long serialVersionUID = 1L;

  8.         public void execute(Tuple input, BasicOutputCollector collector) {
  9.                 // fetched the field "site" from input tuple.
  10.                 String test = input.getStringByField("site");
  11.                 // print the value of field "site" on console.
  12.                 System.out.println("######### Name of input site is : " + test);
  13.         }

  14.         public void declareOutputFields(OutputFieldsDeclarer declarer) {
  15.         }
  16. }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

藤椅
MouJack007 发表于 2017-8-21 22:46:21 |只看作者 |坛友微信交流群
  1. package com.stormadvance.storm_example;

  2. import java.util.HashMap;
  3. import java.util.Map;
  4. import java.util.Random;

  5. import org.apache.storm.spout.SpoutOutputCollector;
  6. import org.apache.storm.task.TopologyContext;
  7. import org.apache.storm.topology.OutputFieldsDeclarer;
  8. import org.apache.storm.topology.base.BaseRichSpout;
  9. import org.apache.storm.tuple.Fields;
  10. import org.apache.storm.tuple.Values;

  11. public class SampleSpout extends BaseRichSpout {
  12.         private static final long serialVersionUID = 1L;

  13.         private static final Map<Integer, String> map = new HashMap<Integer, String>();
  14.         static {
  15.                 map.put(0, "google");
  16.                 map.put(1, "facebook");
  17.                 map.put(2, "twitter");
  18.                 map.put(3, "youtube");
  19.                 map.put(4, "linkedin");
  20.         }
  21.         private SpoutOutputCollector spoutOutputCollector;

  22.         public void open(Map conf, TopologyContext context,
  23.                         SpoutOutputCollector spoutOutputCollector) {
  24.                 // Open the spout
  25.                 this.spoutOutputCollector = spoutOutputCollector;
  26.         }

  27.         public void nextTuple() {
  28.                 // Storm cluster repeatedly calls this method to emita continuous
  29.                 // stream of tuples.
  30.                 final Random rand = new Random();
  31.                 // generate the random number from 0 to 4.
  32.                 int randomNumber = rand.nextInt(5);
  33.                 spoutOutputCollector.emit(new Values(map.get(randomNumber)));
  34.                 try{
  35.                 Thread.sleep(5000);
  36.                 }catch(Exception e) {
  37.                         System.out.println("Failed to sleep the thread");
  38.                 }
  39.         }

  40.         public void declareOutputFields(OutputFieldsDeclarer declarer) {

  41.                 // emit the tuple with field "site"
  42.                 declarer.declare(new Fields("site"));
  43.         }
  44. }
复制代码

使用道具

板凳
cws_24 发表于 2017-8-21 23:53:46 来自手机 |只看作者 |坛友微信交流群
  1. package com.stormadvance.storm_example;

  2. import org.apache.storm.Config;
  3. import org.apache.storm.StormSubmitter;
  4. import org.apache.storm.generated.AlreadyAliveException;
  5. import org.apache.storm.generated.AuthorizationException;
  6. import org.apache.storm.generated.InvalidTopologyException;
  7. import org.apache.storm.topology.TopologyBuilder;

  8. public class SampleStormClusterTopology {
  9.         public static void main(String[] args) throws AlreadyAliveException,
  10.                         InvalidTopologyException {
  11.                 // create an instance of TopologyBuilder class
  12.                 TopologyBuilder builder = new TopologyBuilder();
  13.                 // set the spout class
  14.                 builder.setSpout("SampleSpout", new SampleSpout(), 2);
  15.                 // set the bolt class
  16.                 builder.setBolt("SampleBolt", new SampleBolt(), 4).shuffleGrouping(
  17.                                 "SampleSpout");
  18.                 Config conf = new Config();
  19.                 conf.setNumWorkers(3);
  20.                 // This statement submit the topology on remote
  21.                 // args[0] = name of topology
  22.                 try {
  23.                         StormSubmitter.submitTopology(args[0], conf,
  24.                                         builder.createTopology());
  25.                 } catch (AlreadyAliveException alreadyAliveException) {
  26.                         System.out.println(alreadyAliveException);
  27.                 } catch (InvalidTopologyException invalidTopologyException) {
  28.                         System.out.println(invalidTopologyException);
  29.                 } catch (AuthorizationException e) {
  30.                         // TODO Auto-generated catch block
  31.                         e.printStackTrace();
  32.                 }
  33.         }

  34. }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

报纸
bocm 发表于 2017-8-22 03:20:15 |只看作者 |坛友微信交流群
  1. package com.stormadvance.storm_example;

  2. import org.apache.storm.Config;
  3. import org.apache.storm.LocalCluster;
  4. import org.apache.storm.generated.AlreadyAliveException;
  5. import org.apache.storm.generated.InvalidTopologyException;
  6. import org.apache.storm.topology.TopologyBuilder;

  7. public class SampleStormTopology {
  8.         public static void main(String[] args) throws AlreadyAliveException,
  9.                         InvalidTopologyException {
  10.                 // create an instance of TopologyBuilder class
  11.                 TopologyBuilder builder = new TopologyBuilder();
  12.                 // set the spout class
  13.                 builder.setSpout("SampleSpout", new SampleSpout(), 2);
  14.                 // set the bolt class
  15.                 builder.setBolt("SampleBolt", new SampleBolt(), 4).shuffleGrouping(
  16.                                 "SampleSpout");
  17.                 Config conf = new Config();
  18.                 conf.setDebug(true);
  19.                 // create an instance of LocalCluster class for
  20.                 // executing topology in local mode.
  21.                 LocalCluster cluster = new LocalCluster();
  22.                 // SampleStormTopology is the name of submitted topology
  23.                 cluster.submitTopology("SampleStormTopology", conf,
  24.                                 builder.createTopology());
  25.                 try {
  26.                         Thread.sleep(100000);
  27.                 } catch (Exception exception) {
  28.                         System.out.println("Thread interrupted exception : " + exception);
  29.                 }
  30.                 // kill the SampleStormTopology
  31.                 cluster.killTopology("SampleStormTopology");
  32.                 // shutdown the storm test cluster
  33.                 cluster.shutdown();
  34.         }
  35. }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

地板
Nicolle 学生认证  发表于 2017-8-22 04:03:07 |只看作者 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

7
Nicolle 学生认证  发表于 2017-8-22 04:10:01 |只看作者 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

8
军旗飞扬 发表于 2017-8-22 06:25:14 |只看作者 |坛友微信交流群
package com.stormadvance.storm_example;

import org.apache.storm.Config;
import org.apache.storm.StormSubmitter;
import org.apache.storm.generated.AlreadyAliveException;
import org.apache.storm.generated.AuthorizationException;
import org.apache.storm.generated.InvalidTopologyException;
import org.apache.storm.topology.TopologyBuilder;

public class SampleStormClusterTopology {
        public static void main(String[] args) throws AlreadyAliveException,
                        InvalidTopologyException {
                // create an instance of TopologyBuilder class
                TopologyBuilder builder = new TopologyBuilder();
                // set the spout class
                builder.setSpout("SampleSpout", new SampleSpout(), 2);
                // set the bolt class
                builder.setBolt("SampleBolt", new SampleBolt(), 4).shuffleGrouping(
                                "SampleSpout");
                Config conf = new Config();
                conf.setNumWorkers(3);
                // This statement submit the topology on remote
                // args[0] = name of topology
                try {
                        StormSubmitter.submitTopology(args[0], conf,
                                        builder.createTopology());
                } catch (AlreadyAliveException alreadyAliveException) {
                        System.out.println(alreadyAliveException);
                } catch (InvalidTopologyException invalidTopologyException) {
                        System.out.println(invalidTopologyException);
                } catch (AuthorizationException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
        }

}

使用道具

9
cloudoversea 发表于 2017-8-22 06:26:00 |只看作者 |坛友微信交流群
看看      

使用道具

10
aibieli731001 发表于 2017-8-22 06:44:40 |只看作者 |坛友微信交流群
不知是啥子,看看

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-26 22:01