fix #1747 add warning message
This commit is contained in:
parent
e17850568b
commit
d8fb8b7c39
1 changed files with 1 additions and 0 deletions
|
@ -277,6 +277,7 @@ public class FessEsClient implements Client {
|
|||
final int port = runner.node().settings().getAsInt("transport.tcp.port", 9300);
|
||||
client = createTransportClient(fessConfig, Lists.newArrayList(new TransportAddress(getInetAddressByName("localhost"), port)));
|
||||
addTransportAddress("localhost", port);
|
||||
logger.warn("Embedded Elasticsearch is running. This configuration is not recommended for production use.");
|
||||
} else {
|
||||
client = createTransportClient(fessConfig, transportAddressList);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue