blob: e10404cf2c75a775dd347d95724addbb88237f21 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.zookeeper.cli;
import com.yahoo.vespa.zookeeper.client.ZkClientConfigBuilder;
import org.apache.zookeeper.ZooKeeperMain;
import org.apache.zookeeper.util.ServiceUtils;
import org.slf4j.impl.SimpleLogger;
import java.io.IOException;
/**
* @author bjorncs
*/
public class Main {
static {
System.setProperty(SimpleLogger.DEFAULT_LOG_LEVEL_KEY, "WARN");
}
public static void main(String[] args) throws IOException, InterruptedException {
new ZkClientConfigBuilder()
.toConfigProperties()
.forEach(System::setProperty);
ServiceUtils.setSystemExitProcedure(System::exit);
ZooKeeperMain.main(args);
}
}
|