当前位置: 首页 > news >正文

免费的素材网站有哪些重庆网页设计公司排名

免费的素材网站有哪些,重庆网页设计公司排名,山东爱易网站建设工作室,像wordpress之类的框架title: Storm Druid 集成 layout: documentation documentation: trueStorm Druid Bolt 和 TridentState该模块提供了将数据写入Druid 数据存储的核心Strom和Trident bolt(螺栓)的实现。 该实现使用Druids的Tranquility库向druid发送消息。一些实施细节从现有的借用 Tranquilit…title: Storm Druid 集成 layout: documentation documentation: trueStorm Druid Bolt 和 TridentState该模块提供了将数据写入Druid 数据存储的核心Strom和Trident bolt(螺栓)的实现。 该实现使用Druids的Tranquility库向druid发送消息。一些实施细节从现有的借用 Tranquility Storm Bolt. 这个新的Bolt(螺栓)增加了支持最新的storm释放并保持在storm回购的bolt(螺栓)。Core Bolt下面的例子描述了使用 org.apache.storm.druid.bolt.DruidBeamBolt的核心bolt(螺栓)默认情况下该bolt(螺栓)希望收到元组其中事件字段提供您的事件类型。可以通过实现ITupleDruidEventMapper接口来更改此逻辑。DruidBeamFactory druidBeamFactory new SampleDruidBeamFactoryImpl(new HashMap());DruidConfig druidConfig DruidConfig.newBuilder().discardStreamId(DruidConfig.DEFAULT_DISCARD_STREAM_ID).build();ITupleDruidEventMapper eventMapper new TupleDruidEventMapper(TupleDruidEventMapper.DEFAULT_FIELD_NAME);DruidBeamBolt druidBolt new DruidBeamBolt(druidBeamFactory, eventMapper, druidConfig);topologyBuilder.setBolt(druid-bolt, druidBolt).shuffleGrouping(event-gen);topologyBuilder.setBolt(printer-bolt, new PrinterBolt()).shuffleGrouping(druid-bolt , druidConfig.getDiscardStreamId());Trident StateDruidBeamFactory druidBeamFactory new SampleDruidBeamFactoryImpl(new HashMap());ITupleDruidEventMapper eventMapper new TupleDruidEventMapper(TupleDruidEventMapper.DEFAULT_FIELD_NAME);final Stream stream tridentTopology.newStream(batch-event-gen, new SimpleBatchSpout(10));stream.peek(new Consumer() {Overridepublic void accept(TridentTuple input) {LOG.info(########### Received tuple: [{}], input);}}).partitionPersist(new DruidBeamStateFactory(druidBeamFactory, eventMapper), new Fields(event), new DruidBeamStateUpdater());样品工厂实现Druid bolt 必须配置一个 BeamFactory. 您可以使用它们其中一个来实现 [DruidBeams builders] (https://github.com/druid-io/tranquility/blob/master/core/src/main/scala/com/metamx/tranquility/druid/DruidBeams.scala) buildBeam() method. See the Configuration documentation for details. For more details refer Tranquility library docs.public class SampleDruidBeamFactoryImpl implements DruidBeamFactory {Overridepublic Beam makeBeam(Map, ? conf, IMetricsContext metrics) {final String indexService druid/overlord; // The druid.service name of the indexing service Overlord node.final String discoveryPath /druid/discovery; // Curator service discovery path. config: druid.discovery.curator.pathfinal String dataSource test; //The name of the ingested datasource. Datasources can be thought of as tables.final List dimensions ImmutableList.of(publisher, advertiser);List aggregators ImmutableList.of(new CountAggregatorFactory(click));// Tranquility needs to be able to extract timestamps from your object type (in this case, Map).final Timestamper timestamper new Timestamper(){Overridepublic DateTime timestamp(Map theMap){return new DateTime(theMap.get(timestamp));}};// Tranquility uses ZooKeeper (through Curator) for coordination.final CuratorFramework curator CuratorFrameworkFactory.builder().connectString((String)conf.get(druid.tranquility.zk.connect)) //take config from storm conf.retryPolicy(new ExponentialBackoffRetry(1000, 20, 30000)).build();curator.start();// The JSON serialization of your object must have a timestamp field in a format that Druid understands. By default,// Druid expects the field to be called timestamp and to be an ISO8601 timestamp.final TimestampSpec timestampSpec new TimestampSpec(timestamp, auto, null);// Tranquility needs to be able to serialize your object type to JSON for transmission to Druid. By default this is// done with Jackson. If you want to provide an alternate serializer, you can provide your own via .objectWriter(...).// In this case, we wont provide one, so were just using Jackson.final Beam beam DruidBeams.builder(timestamper).curator(curator).discoveryPath(discoveryPath).location(DruidLocation.create(indexService, dataSource)).timestampSpec(timestampSpec).rollup(DruidRollup.create(DruidDimensions.specific(dimensions), aggregators, QueryGranularities.MINUTE)).tuning(ClusteredBeamTuning.builder().segmentGranularity(Granularity.HOUR).windowPeriod(new Period(PT10M)).partitions(1).replicants(1).build()).druidBeamConfig(DruidBeamConfig.builder().indexRetryPeriod(new Period(PT10M)).build()).buildBeam();return beam;}}Example code is available here.
http://www.pierceye.com/news/553541/

相关文章:

  • 手机平台网站开发品牌网站设计首选
  • 哪些网站可以做调查赚钱图片生成软件
  • 网站空间的管理wordpress vip system
  • 新思维网站北京住房建设部网站首页
  • 温州网站制作套餐麒麟网站建设
  • 淘宝接单做网站wordpress能做企业网站吗
  • 网站建设运营公众号运营合同app网站开发书籍下载
  • 网站seo流程网站开发开账务处理
  • 婚介网站方案长沙网络公司电话
  • 自助网站搭建系统做网站接电话一般要会什么
  • 雷州网站建设公司网站建设与管理说课ppt
  • 问答类网站怎么做wordpress 调取页面缩略图
  • 做电影资源网站手机版wordpress实例配置
  • 广西网站建设方案品牌官网方案
  • 游戏工作室网络组建方案seo81
  • 搭建个人网站的步骤温州专业微网站制作价格
  • 网站怎么做充值系统php图书管理系统网站开发
  • 多商家网站建设自助建站系统源码 资源网
  • 广州番禺网站制作公司哪家好文章网站建设
  • 漯河网站建设e辽宁身营商环境建设局网站
  • 营销网站建设套餐企业信息公示管理系统
  • 网站布局设计排版网站外部链接做多少合适呢
  • 成品网站 源码1688上海网站建设 找德华专业
  • 网站建设费用申报佛山电脑培训班哪里有
  • 免费网站服务器厦门网站建设推广哪家好
  • 青海海东平安县建设局网站如何建设旅游网站
  • 成都响应式网站开发百度里面的站长工具怎么取消
  • 手机购物网站设计广告设计有限公司
  • 新手制作网站wordpress lamp 教程
  • 响应式的网站做优化好吗wordpress删掉自豪