Zookeeper 3.5.9 source code import idea

clone

git clone -b release-3.5.9 https://github.com/apache/zookeeper.git

compile

mvn clean compile -DskipTests

provided

The provided pom under zookeeper-server are commented out, there should be 7 places

<dependency>
    <groupId>jline</groupId>
    <artifactId>jline</artifactId>
    <!--<scope>provided</scope>-->
</dependency>

zoo.cfg

Copy zoo_sample.cfg and name it zoo.cfg

 

Stand-alone version start

The startup class of the stand-alone zookeeper is org.apache.zookeeper.server.ZooKeeperServerMain

Startup configuration

 

Program arguments :  $ProjectFileDir$\conf\zoo.cfg

Main Class : org.apache.zookeeper.server.ZooKeeperServerMain

# -Dlog4j.configuration=file:E:/github_project/zookeeper/conf/log4j.properties 
VM Options: -Dlog4j.configuration=file:$ProjectFileDir$\conf\log4j.properties

start up

 

 

 

Guess you like

Origin blog.csdn.net/kq1983/article/details/115025758