搜索

Twitter利用Storm系统处理实时大数据

发表于 2025-11-05 12:03:07 来源:全栈开发
Twitter利用Storm系统处理实时大数据
复制TopologyBuilder builder = new TopologyBuilder();   builder.setSpout("spout",系统 new RandomSentenceSpout(), 5);   builder.setBolt("map", new SplitSentence(), 4)   .shuffleGrouping("spout");   builder.setBolt("reduce", new WordCount(), 8)   .fieldsGrouping("map", new Fields("word"));   Config conf = new Config();   conf.setDebug(true);   LocalCluster cluster = new LocalCluster();   cluster.submitTopology("word-count", conf, builder.createTopology());   Thread.sleep(10000);   cluster.shutdown();  1.2.3.4.5.6.7.8.9.10.11.12.
随机为您推荐
版权声明:本站资源均来自互联网,如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

Copyright © 2016 Powered by Twitter利用Storm系统处理实时大数据,全栈开发  滇ICP备2023006006号-32sitemap

回顶部