fix ingest runner

This commit is contained in:
Martijn van Groningen 2015-12-15 10:18:19 +01:00
parent aaacf096d2
commit e87709f593
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@
import org.elasticsearch.Version;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.discovery.DiscoveryService;
import org.elasticsearch.node.MockNode;
import org.elasticsearch.node.Node;
import org.elasticsearch.plugin.ingest.IngestPlugin;
@ -34,6 +35,7 @@ public class IngestRunner {
settings.put("http.cors.allow-origin", "*");
settings.put("script.inline", "on");
settings.put("cluster.name", IngestRunner.class.getSimpleName());
settings.put(DiscoveryService.SETTING_DISCOVERY_SEED, 0L);
final CountDownLatch latch = new CountDownLatch(1);
final Node node = new MockNode(settings.build(), Version.CURRENT, Collections.singleton(IngestPlugin.class));