本文整理了Java中backtype.storm.Config.setSkipMissingKryoRegistrations()
方法的一些代码示例,展示了Config.setSkipMissingKryoRegistrations()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.setSkipMissingKryoRegistrations()
方法的具体详情如下:
包路径:backtype.storm.Config
类名称:Config
方法名:setSkipMissingKryoRegistrations
暂无
代码示例来源:origin: alibaba/jstorm
public void setSkipMissingKryoRegistrations(boolean skip) {
setSkipMissingKryoRegistrations(this, skip);
}
代码示例来源:origin: com.n3twork.storm/storm-core
public void setSkipMissingKryoRegistrations(boolean skip) {
setSkipMissingKryoRegistrations(this, skip);
}
代码示例来源:origin: com.alibaba.jstorm/jstorm-core
public void setSkipMissingKryoRegistrations(boolean skip) {
setSkipMissingKryoRegistrations(this, skip);
}
代码示例来源:origin: com.twitter.heron/heron-storm
public void setSkipMissingKryoRegistrations(boolean skip) {
setSkipMissingKryoRegistrations(this, skip);
}
代码示例来源:origin: openimaj/openimaj
@Override
public Config prepareConfig() {
if (preparedConfig == null) {
preparedConfig = new Config();
preparedConfig.setMaxSpoutPending(500);
preparedConfig.setNumWorkers(numberOfWorkers);
preparedConfig.setFallBackOnJavaSerialization(false);
preparedConfig.setSkipMissingKryoRegistrations(false);
JenaStormUtils.registerSerializers(preparedConfig);
}
return preparedConfig;
}
代码示例来源:origin: openimaj/openimaj
public static void main(String[] args) {
final Config conf = new Config();
conf.setDebug(false);
conf.setNumWorkers(2);
conf.setMaxSpoutPending(1);
conf.setFallBackOnJavaSerialization(false);
conf.setSkipMissingKryoRegistrations(false);
final LocalCluster cluster = new LocalCluster();
final TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("randomSpout1", new RandomFieldSpout(2, 0, 0, 1)); // (nfields,seed,min,max)
builder.setSpout("randomSpout2", new RandomFieldSpout(2, 10, 0, 1)); // (nfields,seed,min,max)
JoinBolt.connectNewBolt(builder);
final StormTopology topology = builder.createTopology();
cluster.submitTopology("playTopology", conf, topology);
Utils.sleep(10000);
cluster.killTopology("playTopology");
cluster.shutdown();
}
}
代码示例来源:origin: calrissian/flowmix
public void run() {
StormTopology topology = new FlowmixBuilder()
.setFlowLoader(new SimpleFlowLoaderSpout(provider.getFlows(), 60000))
.setEventsLoader(new MockEventGeneratorSpout(getMockEvents(), 10))
.setOutputBolt(new PrinterBolt())
.setParallelismHint(6)
.create()
.createTopology();
Config conf = new Config();
conf.setNumWorkers(20);
conf.setMaxSpoutPending(5000);
conf.setDebug(false);
conf.registerSerialization(BaseEvent.class, EventSerializer.class);
conf.setSkipMissingKryoRegistrations(false);
LocalCluster cluster = new LocalCluster();
cluster.submitTopology("example-topology", conf, topology);
}
代码示例来源:origin: org.openimaj.storm/core-storm
public static void main(String[] args) {
final Config conf = new Config();
conf.setDebug(false);
conf.setNumWorkers(2);
conf.setMaxSpoutPending(1);
conf.setFallBackOnJavaSerialization(false);
conf.setSkipMissingKryoRegistrations(false);
final LocalCluster cluster = new LocalCluster();
final TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("randomSpout1", new RandomFieldSpout(2, 0, 0, 1)); // (nfields,seed,min,max)
builder.setSpout("randomSpout2", new RandomFieldSpout(2, 10, 0, 1)); // (nfields,seed,min,max)
JoinBolt.connectNewBolt(builder);
final StormTopology topology = builder.createTopology();
cluster.submitTopology("playTopology", conf, topology);
Utils.sleep(10000);
cluster.killTopology("playTopology");
cluster.shutdown();
}
}
内容来源于网络,如有侵权,请联系作者删除!