Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bin/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
export SERVER_JVMFLAGS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
./zkServer.sh start-foreground
1 change: 1 addition & 0 deletions bin/zkCli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ else
fi

ZOO_LOG_FILE=zookeeper-$USER-cli-$HOSTNAME.log
export CLIENT_JVMFLAGS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006"

"$JAVA" "-Dzookeeper.log.dir=${ZOO_LOG_DIR}" "-Dzookeeper.log.file=${ZOO_LOG_FILE}" \
-cp "$CLASSPATH" $CLIENT_JVMFLAGS $JVMFLAGS \
Expand Down
40 changes: 40 additions & 0 deletions conf/zoo.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1

## Metrics Providers
#
# https://prometheus.io Metrics Exporter
#metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
#metricsProvider.httpPort=7000
#metricsProvider.exportJvmInfo=true


## Spiral Server
spiral-server=127.0.0.1
spiral-port=19740
39 changes: 38 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
<module>zookeeper-client</module>
<module>zookeeper-recipes</module>
<module>zookeeper-assembly</module>
<module>zbridge-assembly</module>
<module>zookeeper-compatibility-tests</module>
</modules>

Expand Down Expand Up @@ -501,6 +502,36 @@
<artifactId>snappy-java</artifactId>
<version>${snappy.version}</version>
</dependency>
<dependency>
<groupId>com.linkedin.spiral-schemas</groupId>
<artifactId>spiral-api</artifactId>
<version>0.0.3</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-api</artifactId>
<version>1.49.2</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>1.49.2</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.49.2</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.49.2</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-testing</artifactId>
<version>1.49.2</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -947,7 +978,6 @@
</resource>
</resources>
</build>

<reporting>
<plugins>
<plugin>
Expand All @@ -956,6 +986,13 @@
</plugin>
</plugins>
</reporting>
<repositories>
<repository>
<id>artifactory</id>
<name>LinkedIn's Artifactory</name>
<url>https://artifactory.corp.linkedin.com:8083/artifactory/release/</url>
</repository>
</repositories>

<distributionManagement>
<repository>
Expand Down
169 changes: 169 additions & 0 deletions zbridge-assembly/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!--
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.linkedin.zookeeper</groupId>
<artifactId>parent</artifactId>
<version>3.6.5-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>zbridge-assembly</artifactId>
<packaging>pom</packaging>
<name>LinkedIn ZBridge - Assembly</name>
<description>ZBridge Assembly</description>

<profiles>
<profile>
<id>full-build</id>
<properties>
<skip.lib.artifact>false</skip.lib.artifact>
</properties>
</profile>
</profiles>


<properties>
<rw.file.permission>0644</rw.file.permission>
<rwx.file.permission>0755</rwx.file.permission>
<skip.lib.artifact>true</skip.lib.artifact>
</properties>

<dependencies>
<dependency>
<groupId>com.linkedin.zookeeper</groupId>
<artifactId>zookeeper-docs</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.linkedin.zookeeper</groupId>
<artifactId>zookeeper-jute</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.linkedin.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.linkedin.zookeeper</groupId>
<artifactId>zookeeper-client</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.linkedin.zookeeper</groupId>
<artifactId>zookeeper-prometheus-metrics</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.linkedin.zookeeper</groupId>
<artifactId>zookeeper-recipes</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<!-- list here all the jars we want to put in "lib"
and are in scope 'provided' -->
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
</dependency>
<dependency>
<groupId>jline</groupId>
<artifactId>jline</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-core</artifactId>
</dependency>
<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>bin-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${project.basedir}/src/main/assembly/bin-package.xml</descriptor>
</descriptors>
<finalName>apache-zookeeper-${project.version}-bin</finalName>
<appendAssemblyId>false</appendAssemblyId>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<!-- Deploy binary assembly to bintray -->
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>jfrog-linkedin</id>
<name>linkedin-releases</name>
<url>https://linkedin.jfrog.io/artifactory/zookeeper</url>
</repository>
</distributionManagement>
</project>
84 changes: 84 additions & 0 deletions zbridge-assembly/src/main/assembly/bin-package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<!--
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<id>bin-package</id>
<formats>
<format>tar.gz</format>
</formats>
<includeBaseDirectory>true</includeBaseDirectory>
<componentDescriptors>
<componentDescriptor>src/main/assembly/components.xml</componentDescriptor>
</componentDescriptors>

<dependencySets>
<dependencySet>
<includes>
<include>*:*</include>
</includes>
<excludes>
<exclude>com.linkedin.zookeeper:zookeeper-recipes</exclude>
<exclude>com.linkedin.zookeeper:zookeeper-client</exclude>
<exclude>com.linkedin.zookeeper:zookeeper-docs</exclude>
</excludes>
<useProjectArtifact>false</useProjectArtifact>
<useTransitiveDependencies>true</useTransitiveDependencies>
<outputDirectory>lib</outputDirectory>
<fileMode>${rw.file.permission}</fileMode>
<directoryMode>${rwx.file.permission}</directoryMode>
<useStrictFiltering>true</useStrictFiltering>
</dependencySet>
</dependencySets>

<fileSets>
<fileSet>
<!-- ZooKeeper generated documents -->
<directory>${project.basedir}/../zookeeper-docs/target/html</directory>
<outputDirectory>docs</outputDirectory>
<fileMode>${rw.file.permission}</fileMode>
<directoryMode>${rwx.file.permission}</directoryMode>
</fileSet>
<fileSet>
<!-- ZooKeeper jute generated api document -->
<directory>${project.basedir}/../zookeeper-jute/target/apidocs</directory>
<outputDirectory>docs/apidocs/zookeeper-jute</outputDirectory>
<fileMode>${rw.file.permission}</fileMode>
<directoryMode>${rwx.file.permission}</directoryMode>
</fileSet>
<fileSet>
<!-- ZooKeeper server generated api document -->
<directory>${project.basedir}/../zookeeper-server/target/apidocs</directory>
<outputDirectory>docs/apidocs/zookeeper-server</outputDirectory>
<fileMode>${rw.file.permission}</fileMode>
<directoryMode>${rwx.file.permission}</directoryMode>
</fileSet>
<fileSet>
<!-- License files for 3rd party libs -->
<directory>${project.basedir}/../zookeeper-server/src/main/resources/lib</directory>
<includes>
<include>*.txt</include>
</includes>
<outputDirectory>lib</outputDirectory>
<fileMode>${rw.file.permission}</fileMode>
</fileSet>
</fileSets>

</assembly>
Loading