Search in sources :

Example 1 with EsConfig

use of com.alibaba.jstorm.elasticsearch.common.EsConfig in project jstorm by alibaba.

the class TestSuite method init.

@BeforeClass
public static void init() {
    cluster = new LocalCluster();
    conf = new Config();
    conf.put(Config.TOPOLOGY_MAX_TASK_PARALLELISM, 1);
    esConfig = new EsConfig("test", "127.0.0.1:9300");
}
Also used : LocalCluster(backtype.storm.LocalCluster) EsConfig(com.alibaba.jstorm.elasticsearch.common.EsConfig) Config(backtype.storm.Config) EsConfig(com.alibaba.jstorm.elasticsearch.common.EsConfig) BeforeClass(org.junit.BeforeClass)

Aggregations

Config (backtype.storm.Config)1 LocalCluster (backtype.storm.LocalCluster)1 EsConfig (com.alibaba.jstorm.elasticsearch.common.EsConfig)1 BeforeClass (org.junit.BeforeClass)1