aboutsummaryrefslogtreecommitdiffstats
path: root/zkfacade
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2022-11-04 14:20:11 +0100
committerHarald Musum <musum@yahooinc.com>2022-11-04 14:20:11 +0100
commit9626751bc6e74104c9791e07a0e666b7c3a9daa7 (patch)
tree1528773d644310b28dedf028f7852093b3f64b04 /zkfacade
parent419f93800baa0fdd6e9260f8a9485bb0f2322f0a (diff)
Use var/zookeeper/conf for zookeeper server and client config
Avoid using read-only conf/ directory for config files written when starting zookeeper
Diffstat (limited to 'zkfacade')
-rw-r--r--zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java b/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java
index e0b7969749f..66c03505a53 100644
--- a/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java
+++ b/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java
@@ -61,7 +61,7 @@ import java.util.logging.Logger;
public class Curator extends AbstractComponent implements AutoCloseable {
private static final Logger LOG = Logger.getLogger(Curator.class.getName());
- private static final File ZK_CLIENT_CONFIG_FILE = new File(Defaults.getDefaults().underVespaHome("conf/zookeeper/zookeeper-client.cfg"));
+ private static final File ZK_CLIENT_CONFIG_FILE = new File(Defaults.getDefaults().underVespaHome("var/zookeeper/conf/zookeeper-client.cfg"));
// Note that session timeout has min and max values are related to tickTime defined by server, see zookeeper-server.def
static final Duration DEFAULT_ZK_SESSION_TIMEOUT = Duration.ofSeconds(120);