use of org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpi in project ignite by apache.
the class ZookeeperNodeStart method main.
/**
*/
public static void main(String[] args) throws Exception {
try {
IgniteConfiguration cfg = new IgniteConfiguration();
ZookeeperDiscoverySpi spi = new ZookeeperDiscoverySpi();
spi.setZkConnectionString("localhost:2181");
cfg.setDiscoverySpi(spi);
Ignition.start(cfg);
} catch (Throwable e) {
e.printStackTrace(System.out);
System.exit(1);
}
}
Aggregations