Skip to content

Commit

Permalink
Use ElasticSearch in single-node mode (#76)
Browse files Browse the repository at this point in the history
We've been seeing datahub integration tests fail on Linux machines (e.g. datahub-project/datahub#2088). The core reason for this issue is that production deployments of ElasticSearch require some extra configuration on Linux machines.

However, we don't need a production deployment for integration tests, and as per the ES docs, we can use single-node mode to bypass these checks and make the tests succeed on Linux-based distros.

Note that this is already done in the es-7 directories
  • Loading branch information
hsheth2 authored Feb 9, 2021
1 parent e7bb1d9 commit 50e4192
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ private static TransportClient buildTransportClient(@Nonnull GenericContainerImp
public ElasticsearchConnection start() throws Exception {
if (_container == null) {
_container = new GenericContainerImpl(IMAGE_NAME).withExposedPorts(HTTP_PORT, TRANSPORT_PORT)
.withEnv("xpack.security.enabled", "false");
.withEnv("xpack.security.enabled", "false")
.withEnv("discovery.type", "single-node");
_container.start();
}

Expand Down

0 comments on commit 50e4192

Please sign in to comment.