You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by eo...@apache.org on 2018/11/12 12:54:39 UTC

[bookkeeper] branch master updated: [tools] package bookkeeper tools into a separated distribution

This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 8ad1e90  [tools] package bookkeeper tools into a separated distribution
8ad1e90 is described below

commit 8ad1e9031eca426324583d29b50d6c70046310d5
Author: Sijie Guo <gu...@gmail.com>
AuthorDate: Mon Nov 12 04:54:34 2018 -0800

    [tools] package bookkeeper tools into a separated distribution
    
    Descriptions of the changes in this PR:
    
    *Motivation*
    
    Server distribution contains a lot of stuffs that doesn’t need to run bkctl and bookkeeper shell, such as stats providers, http servers and many other dependencies.
    
    At many environments, you want to deliver a set of tools to your customers to interact with or operate bookkeeper clusters. They don’t care about server side stuffs and ask them to use a server package to run a tool makes things confused.
    
    *changes*
    
    Create a new ‘bkctl’ package that only contains bookkeeper shell and new cli.
    
    
    
    
    
    Reviewers: Charan Reddy Guttapalem <re...@gmail.com>, Enrico Olivelli <eo...@gmail.com>, Matteo Merli <mm...@apache.org>
    
    This closes #1798 from sijie/package_bookkeeper_tool
---
 .travis_scripts/build.sh                           |   1 +
 bin/common.sh                                      |   2 +-
 bookkeeper-dist/bkctl/pom.xml                      |  88 +++++
 bookkeeper-dist/pom.xml                            |   1 +
 bookkeeper-dist/src/assemble/bkctl.xml             | 116 +++++++
 .../src/main/resources/LICENSE-bkctl.bin.txt       | 385 +++++++++++++++++++++
 .../src/main/resources/NOTICE-bkctl.bin.txt        |  97 ++++++
 7 files changed, 689 insertions(+), 1 deletion(-)

diff --git a/.travis_scripts/build.sh b/.travis_scripts/build.sh
index 49e33a9..dcfc3e7 100755
--- a/.travis_scripts/build.sh
+++ b/.travis_scripts/build.sh
@@ -30,6 +30,7 @@ else
     mvn --batch-mode clean apache-rat:check compile spotbugs:check install -DskipTests -Dstream
     $BK_HOME/dev/check-binary-license ./bookkeeper-dist/all/target/bookkeeper-all-*-bin.tar.gz;
     $BK_HOME/dev/check-binary-license ./bookkeeper-dist/server/target/bookkeeper-server-*-bin.tar.gz;
+    $BK_HOME/dev/check-binary-license ./bookkeeper-dist/bkctl/target/bkctl-*-bin.tar.gz;
     if [ "$DLOG_MODIFIED" == "true" ]; then
         cd $BK_HOME/stream/distributedlog
         mvn --batch-mode clean package -Ddistributedlog
diff --git a/bin/common.sh b/bin/common.sh
index d54b1d5..73de28f 100755
--- a/bin/common.sh
+++ b/bin/common.sh
@@ -117,7 +117,7 @@ CLI_GC_LOGGING_OPTS=${CLI_GC_LOGGING_OPTS:-"${DEFAULT_CLI_GC_LOGGING_OPTS}"}
 find_module_jar_at() {
   DIR=$1
   MODULE=$2
-  REGEX="^${MODULE}-[0-9\\.]*(-SNAPSHOT)?.jar$"
+  REGEX="^${MODULE}-[0-9\\.]*((-[a-zA-Z]*(-[0-9]*)?)|(-SNAPSHOT))?.jar$"
   if [ -d ${DIR} ]; then
     cd ${DIR}
     for f in *.jar; do
diff --git a/bookkeeper-dist/bkctl/pom.xml b/bookkeeper-dist/bkctl/pom.xml
new file mode 100644
index 0000000..e581865
--- /dev/null
+++ b/bookkeeper-dist/bkctl/pom.xml
@@ -0,0 +1,88 @@
+<!--
+
+  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.
+
+-->
+<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">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <artifactId>bookkeeper-dist</artifactId>
+    <groupId>org.apache.bookkeeper</groupId>
+    <version>4.9.0-SNAPSHOT</version>
+    <relativePath>..</relativePath>
+  </parent>
+
+  <artifactId>bkctl</artifactId>
+  <packaging>jar</packaging>
+  <name>Apache BookKeeper :: Dist (Bkctl)</name>
+
+  <dependencies>
+    <!-- bookkeeper.tools (new CLI) -->
+    <dependency>
+      <groupId>org.apache.bookkeeper</groupId>
+      <artifactId>bookkeeper-tools</artifactId>
+      <version>${project.version}</version>
+      <exclusions>
+        <exclusion>
+          <groupId>org.rocksdb</groupId>
+          <artifactId>rocksdbjni</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+
+    <!-- slf4j binding -->
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <version>${maven-assembly-plugin.version}</version>
+        <configuration>
+          <finalName>bkctl-${project.version}</finalName>
+          <attach>true</attach>
+          <descriptors>
+            <descriptor>../src/assemble/bkctl.xml</descriptor>
+          </descriptors>
+          <tarLongFileMode>posix</tarLongFileMode>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <!-- skip deploying this artifact, since this module is used for generating an uber package-->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-deploy-plugin</artifactId>
+        <version>${maven-deploy-plugin.version}</version>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/bookkeeper-dist/pom.xml b/bookkeeper-dist/pom.xml
index 7ae8c38..b81fe60 100644
--- a/bookkeeper-dist/pom.xml
+++ b/bookkeeper-dist/pom.xml
@@ -28,6 +28,7 @@
   <modules>
     <module>all</module>
     <module>server</module>
+    <module>bkctl</module>
   </modules>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
diff --git a/bookkeeper-dist/src/assemble/bkctl.xml b/bookkeeper-dist/src/assemble/bkctl.xml
new file mode 100644
index 0000000..439c344
--- /dev/null
+++ b/bookkeeper-dist/src/assemble/bkctl.xml
@@ -0,0 +1,116 @@
+<!--
+   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.
+-->
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+  <id>bin</id>
+  <formats>
+    <format>tar.gz</format>
+  </formats>
+  <includeBaseDirectory>true</includeBaseDirectory>
+  <fileSets>
+    <fileSet>
+      <directory>target</directory>
+      <outputDirectory></outputDirectory>
+      <includes>
+        <include>${project.artifactId}-${project.version}.jar</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <directory>../../conf</directory>
+      <outputDirectory>conf</outputDirectory>
+      <includes>
+        <include>bk_cli_env.sh</include>
+        <include>bk_server.conf</include>
+        <include>bkenv.sh</include>
+        <include>jaas_example.conf</include>
+        <include>log4j.cli.properties</include>
+        <include>log4j.shell.properties</include>
+        <include>nettyenv.sh</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <directory>../../bin</directory>
+      <fileMode>755</fileMode>
+      <outputDirectory>bin</outputDirectory>
+      <includes>
+        <include>bkctl</include>
+        <include>bkperf</include>
+        <include>bookkeeper</include>
+        <include>common.sh</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <fileMode>644</fileMode>
+      <includes>
+        <include>${basedir}/*.txt</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <directory>../src/main/resources/deps</directory>
+      <outputDirectory>deps</outputDirectory>
+      <includes>
+        <include>google-auth-library-credentials-0.9.0/LICENSE</include>
+        <include>netty-4.1.31.Final/*</include>
+        <include>protobuf-3.0.0/LICENSE</include>
+        <include>jline-2.11/LICENSE</include>
+        <include>protobuf-3.5.1/LICENSE</include>
+        <include>slf4j-1.7.25/LICENSE.txt</include>
+      </includes>
+      <fileMode>644</fileMode>
+    </fileSet>
+  </fileSets>
+  <files>
+    <file>
+      <source>../../README.md</source>
+      <outputDirectory></outputDirectory>
+      <fileMode>644</fileMode>
+    </file>
+    <file>
+      <source>../src/main/resources/LICENSE-bkctl.bin.txt</source>
+      <outputDirectory></outputDirectory>
+      <destName>LICENSE</destName>
+      <fileMode>644</fileMode>
+    </file>
+    <file>
+      <source>../src/main/resources/NOTICE-bkctl.bin.txt</source>
+      <outputDirectory></outputDirectory>
+      <destName>NOTICE</destName>
+      <fileMode>644</fileMode>
+    </file>
+  </files>
+  <dependencySets>
+    <dependencySet>
+      <outputDirectory>lib</outputDirectory>
+      <unpack>false</unpack>
+      <scope>runtime</scope>
+      <useProjectArtifact>false</useProjectArtifact>
+      <!-- Include 'groupId' in the dependencies Jar names to better identify the provenance of the jar -->
+      <outputFileNameMapping>${artifact.groupId}-${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+      <excludes>
+        <exclude>com.google.code.findbugs:jsr305</exclude>
+        <!-- All these dependencies are already included in stream-storage-java-client -->
+        <exclude>org.apache.bookkeeper:stream-storage-common</exclude>
+        <exclude>org.apache.bookkeeper:stream-storage-proto</exclude>
+        <exclude>org.apache.bookkeeper:stream-storage-api</exclude>
+        <exclude>org.apache.bookkeeper:stream-storage-java-client-base</exclude>
+        <!-- exclude server-side dependencies -->
+        <exclude>org.rocksdb:rocksdbjni</exclude>
+      </excludes>
+    </dependencySet>
+  </dependencySets>
+</assembly>
diff --git a/bookkeeper-dist/src/main/resources/LICENSE-bkctl.bin.txt b/bookkeeper-dist/src/main/resources/LICENSE-bkctl.bin.txt
new file mode 100644
index 0000000..486a35a
--- /dev/null
+++ b/bookkeeper-dist/src/main/resources/LICENSE-bkctl.bin.txt
@@ -0,0 +1,385 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed 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.
+
+------------------------------------------------------------------------------------
+The following bundled 3rd party jars are distributed under the
+Apache Software License, Version 2.
+
+- lib/com.fasterxml.jackson.core-jackson-annotations-2.9.7.jar [1]
+- lib/com.fasterxml.jackson.core-jackson-core-2.9.7.jar [2]
+- lib/com.fasterxml.jackson.core-jackson-databind-2.9.7.jar [3]
+- lib/com.google.guava-guava-21.0.jar [4]
+- lib/commons-cli-commons-cli-1.2.jar [5]
+- lib/commons-codec-commons-codec-1.6.jar [6]
+- lib/commons-configuration-commons-configuration-1.10.jar [7]
+- lib/commons-io-commons-io-2.4.jar [8]
+- lib/commons-lang-commons-lang-2.6.jar [9]
+- lib/commons-logging-commons-logging-1.1.1.jar [10]
+- lib/io.netty-netty-buffer-4.1.31.Final.jar [11]
+- lib/io.netty-netty-codec-4.1.31.Final.jar [11]
+- lib/io.netty-netty-codec-http-4.1.31.Final.jar [11]
+- lib/io.netty-netty-codec-http2-4.1.31.Final.jar [11]
+- lib/io.netty-netty-codec-socks-4.1.31.Final.jar [11]
+- lib/io.netty-netty-common-4.1.31.Final.jar [11]
+- lib/io.netty-netty-handler-4.1.31.Final.jar [11]
+- lib/io.netty-netty-handler-proxy-4.1.31.Final.jar [11]
+- lib/io.netty-netty-resolver-4.1.31.Final.jar [11]
+- lib/io.netty-netty-tcnative-boringssl-static-2.0.19.Final.jar [11]
+- lib/io.netty-netty-transport-4.1.31.Final.jar [11]
+- lib/io.netty-netty-transport-native-epoll-4.1.31.Final.jar [11]
+- lib/io.netty-netty-transport-native-unix-common-4.1.31.Final.jar [11]
+- lib/log4j-log4j-1.2.17.jar [16]
+- lib/net.java.dev.jna-jna-3.2.7.jar [17]
+- lib/org.apache.commons-commons-collections4-4.1.jar [18]
+- lib/org.apache.commons-commons-lang3-3.6.jar [19]
+- lib/org.apache.zookeeper-zookeeper-3.4.13.jar [20]
+- lib/com.beust-jcommander-1.48.jar [23]
+- lib/net.jpountz.lz4-lz4-1.3.0.jar [25]
+- lib/com.google.api.grpc-proto-google-common-protos-1.0.0.jar [27]
+- lib/com.google.code.gson-gson-2.7.jar [28]
+- lib/io.opencensus-opencensus-api-0.11.0.jar [29]
+- lib/io.opencensus-opencensus-contrib-grpc-metrics-0.11.0.jar [29]
+- lib/com.squareup.okhttp-okhttp-2.5.0.jar [30]
+- lib/com.squareup.okio-okio-1.13.0.jar [31]
+- lib/io.grpc-grpc-all-1.12.0.jar [32]
+- lib/io.grpc-grpc-auth-1.12.0.jar [32]
+- lib/io.grpc-grpc-context-1.12.0.jar [32]
+- lib/io.grpc-grpc-core-1.12.0.jar [32]
+- lib/io.grpc-grpc-netty-1.12.0.jar [32]
+- lib/io.grpc-grpc-okhttp-1.12.0.jar [32]
+- lib/io.grpc-grpc-protobuf-1.12.0.jar [32]
+- lib/io.grpc-grpc-protobuf-lite-1.12.0.jar [32]
+- lib/io.grpc-grpc-protobuf-nano-1.12.0.jar [32]
+- lib/io.grpc-grpc-stub-1.12.0.jar [32]
+- lib/io.grpc-grpc-testing-1.12.0.jar [32]
+- lib/org.apache.curator-curator-client-4.0.1.jar [33]
+- lib/org.apache.curator-curator-framework-4.0.1.jar [33]
+- lib/org.apache.curator-curator-recipes-4.0.1.jar [33]
+- lib/org.inferred-freebuilder-1.14.9.jar [34]
+- lib/com.google.errorprone-error_prone_annotations-2.1.2.jar [35]
+- lib/org.apache.yetus-audience-annotations-0.5.0.jar [36]
+
+[1] Source available at https://github.com/FasterXML/jackson-annotations/tree/jackson-annotations-2.8.9
+[2] Source available at https://github.com/FasterXML/jackson-core/tree/jackson-core-2.8.9
+[3] Source available at https://github.com/FasterXML/jackson-databind/tree/jackson-databind-2.9.7
+[4] Source available at https://github.com/google/guava/tree/v21.0
+[5] Source available at https://git-wip-us.apache.org/repos/asf?p=commons-cli.git;a=tag;h=bc8f0e
+[6] Source available at http://svn.apache.org/viewvc/commons/proper/codec/tags/1_6/
+[7] Source available at http://svn.apache.org/viewvc/commons/proper/configuration/tags/CONFIGURATION_1_10/
+[8] Source available at https://git-wip-us.apache.org/repos/asf?p=commons-io.git;a=tag;h=603579
+[9] Source available at https://git-wip-us.apache.org/repos/asf?p=commons-lang.git;a=tag;h=375459
+[10] Source available at http://svn.apache.org/viewvc/commons/proper/logging/tags/commons-logging-1.1.1/
+[11] Source available at https://github.com/netty/netty/tree/netty-4.1.31.Final
+[16] Source available at http://logging.apache.org/log4j/1.2/download.html
+[17] Source available at https://github.com/java-native-access/jna/tree/3.2.7
+[18] Source available at https://git-wip-us.apache.org/repos/asf?p=commons-collections.git;a=tag;h=a3a5ad
+[19] Source available at https://git-wip-us.apache.org/repos/asf?p=commons-lang.git;a=shortlog;h=refs/tags/LANG_3_6
+[20] Source available at https://github.com/apache/zookeeper/tree/release-3.4.13
+[23] Source available at https://github.com/cbeust/jcommander/tree/jcommander-1.48
+[25] Source available at https://github.com/lz4/lz4-java/tree/1.3.0
+[27] Source available at https://github.com/googleapis/googleapis
+[28] Source available at https://github.com/google/gson/tree/gson-parent-2.7
+[29] Source available at https://github.com/census-instrumentation/opencensus-java/tree/v0.11.0
+[30] Source available at https://github.com/square/okhttp/tree/parent-2.5.0
+[31] Source available at https://github.com/square/okio/tree/okio-parent-1.13.0
+[32] Source available at https://github.com/grpc/grpc-java/tree/v1.12.0
+[33] Source available at https://github.com/apache/curator/tree/apache-curator-4.0.1
+[34] Source available at https://github.com/inferred/FreeBuilder/tree/v1.14.9
+[35] Source available at https://github.com/google/error-prone/tree/v2.1.2
+[36] Source available at https://github.com/apache/yetus/tree/rel/0.5.0
+
+------------------------------------------------------------------------------------
+lib/io.netty-netty-codec-4.1.31.Final.jar bundles some 3rd party dependencies
+
+lib/io.netty-netty-codec-4.1.31.Final.jar contains the extensions to Java Collections Framework which has
+been derived from the works by JSR-166 EG, Doug Lea, and Jason T. Greene:
+
+  * LICENSE:
+    * deps/netty-4.1.31.Final/LICENSE.jsr166y.txt (Public Domain)
+  * HOMEPAGE:
+    * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/
+    * http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbosscache/experimental/jsr166/
+
+lib/io.netty-netty-codec-4.1.31.Final.jar contains a modified version of Robert Harder's Public Domain
+Base64 Encoder and Decoder, which can be obtained at:
+
+  * LICENSE:
+    * deps/netty-4.1.31.Final/LICENSE.base64.txt (Public Domain)
+  * HOMEPAGE:
+    * http://iharder.sourceforge.net/current/java/base64/
+
+lib/io.netty-netty-common-4.1.31.Final.jar contains a modified portion of 'SLF4J', a simple logging
+facade for Java, which can be obtained at:
+
+  * LICENSE:
+    * deps/netty-4.1.31.Final/LICENSE.slf4j.txt (MIT License)
+  * HOMEPAGE:
+    * http://www.slf4j.org/
+
+lib/io.netty-netty-codec-4.1.31.Final.jar contains a modified portion of 'jbzip2', a Java bzip2 compression
+and decompression library written by Matthew J. Francis. It can be obtained at:
+
+  * LICENSE:
+    * deps/netty-4.1.31.Final/LICENSE.jbzip2.txt (MIT License)
+  * HOMEPAGE:
+    * https://code.google.com/p/jbzip2/
+
+lib/io.netty-netty-codec-4.1.31.Final.jar contains a modified portion of 'libdivsufsort', a C API library to construct
+the suffix array and the Burrows-Wheeler transformed string for any input string of
+a constant-size alphabet written by Yuta Mori. It can be obtained at:
+
+  * LICENSE:
+    * deps/netty-4.1.31.Final/LICENSE.libdivsufsort.txt (MIT License)
+  * HOMEPAGE:
+    * https://github.com/y-256/libdivsufsort
+
+lib/io.netty-netty-codec-4.1.31.Final.jar contains a modified portion of 'jfastlz', a Java port of FastLZ compression
+and decompression library written by William Kinney. It can be obtained at:
+
+  * LICENSE:
+    * deps/netty-4.1.31.Final/LICENSE.jfastlz.txt (MIT License)
+  * HOMEPAGE:
+    * https://code.google.com/p/jfastlz/
+
+lib/io.netty-netty-codec-4.1.31.Final.jar contains a modified portion of and optionally depends on 'Protocol Buffers', Google's data
+interchange format, which can be obtained at:
+
+  * LICENSE:
+    * deps/netty-4.1.31.Final/LICENSE.protobuf.txt (New BSD License)
+  * HOMEPAGE:
+    * https://github.com/google/protobuf
+
+------------------------------------------------------------------------------------
+This product bundles Google Protocol Buffers, which is available under a "3-clause BSD"
+license.
+
+Bundled as
+  - lib/com.google.protobuf-protobuf-java-3.5.1.jar
+  - lib/com.google.protobuf-protobuf-java-util-3.5.1.jar
+Source available at https://github.com/google/protobuf/tree/v3.5.1
+For details, see deps/protobuf-3.5.1/LICENSE.
+
+Bundled as lib/com.google.protobuf.nano-protobuf-javanano-3.0.0-alpha-5.jar
+Source available at https://github.com/google/protobuf/tree/3.0.0-pre
+For details, see deps/protobuf-3.0.0/LICENSE.
+------------------------------------------------------------------------------------
+This product bundles Simple Logging Facade for Java, which is available under a
+MIT license. For details, see deps/slf4j-1.7.25/LICENSE.txt.
+
+Bundled as
+  - lib/org.slf4j-slf4j-api-1.7.25.jar
+  - lib/org.slf4j-slf4j-log4j12-1.7.25.jar
+Source available at https://github.com/qos-ch/slf4j/tree/v_1.7.25
+------------------------------------------------------------------------------------
+This product bundles the Google Auth Library, which is available under a "3-clause BSD"
+license. For details, see deps/google-auth-library-credentials-0.9.0/LICENSE
+
+Bundled as
+  - lib/com.google.auth-google-auth-library-credentials-0.9.0.jar
+Source available at https://github.com/google/google-auth-library-java/tree/0.9.0
+------------------------------------------------------------------------------------
+This product bundles the JLine Library, which is available under a "2-clause BSD"
+license. For details, see deps/jline-2.11/LICENSE
+
+Bundled as
+  - lib/jline-jline-2.11.jar
diff --git a/bookkeeper-dist/src/main/resources/NOTICE-bkctl.bin.txt b/bookkeeper-dist/src/main/resources/NOTICE-bkctl.bin.txt
new file mode 100644
index 0000000..680a02d
--- /dev/null
+++ b/bookkeeper-dist/src/main/resources/NOTICE-bkctl.bin.txt
@@ -0,0 +1,97 @@
+Apache BookKeeper
+Copyright 2011-2018 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+------------------------------------------------------------------------------------
+- lib/io.netty-netty-buffer-4.1.31.Final.jar
+- lib/io.netty-netty-codec-4.1.31.Final.jar
+- lib/io.netty-netty-codec-http-4.1.31.Final.jar
+- lib/io.netty-netty-codec-http2-4.1.31.Final.jar
+- lib/io.netty-netty-codec-socks-4.1.31.Final.jar
+- lib/io.netty-netty-common-4.1.31.Final.jar
+- lib/io.netty-netty-handler-4.1.31.Final.jar
+- lib/io.netty-netty-handler-proxy-4.1.31.Final.jar
+- lib/io.netty-netty-resolver-4.1.31.Final.jar
+- lib/io.netty-netty-tcnative-boringssl-static-2.0.19.Final.jar
+- lib/io.netty-netty-transport-4.1.31.Final.jar
+- lib/io.netty-netty-transport-native-epoll-4.1.31.Final.jar
+- lib/io.netty-netty-transport-native-unix-common-4.1.31.Final.jar
+
+
+                            The Netty Project
+                            =================
+
+Please visit the Netty web site for more information:
+
+  * http://netty.io/
+
+Copyright 2014 The Netty Project
+
+The Netty Project 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.
+
+------------------------------------------------------------------------------------
+- lib/com.beust-jcommander-1.48.jar
+
+Copyright 2010 Cedric Beust cedric@beust.com
+
+------------------------------------------------------------------------------------
+- lib/io.grpc-grpc-all-1.12.0.jar
+- lib/io.grpc-grpc-auth-1.12.0.jar
+- lib/io.grpc-grpc-context-1.12.0.jar
+- lib/io.grpc-grpc-core-1.12.0.jar
+- lib/io.grpc-grpc-netty-1.12.0.jar
+- lib/io.grpc-grpc-okhttp-1.12.0.jar
+- lib/io.grpc-grpc-protobuf-1.12.0.jar
+- lib/io.grpc-grpc-protobuf-lite-1.12.0.jar
+- lib/io.grpc-grpc-protobuf-nano-1.12.0.jar
+- lib/io.grpc-grpc-stub-1.12.0.jar
+- lib/io.grpc-grpc-testing-1.12.0.jar
+
+Copyright 2014, gRPC Authors All rights reserved.
+
+Licensed 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.
+
+This product contains a modified portion of 'OkHttp', an open source
+HTTP & SPDY client for Android and Java applications, which can be obtained
+at:
+
+  * LICENSE:
+    * okhttp/third_party/okhttp/LICENSE (Apache License 2.0)
+  * HOMEPAGE:
+    * https://github.com/square/okhttp
+  * LOCATION_IN_GRPC:
+    * okhttp/third_party/okhttp
+
+This product contains a modified portion of 'Netty', an open source
+networking library, which can be obtained at:
+
+  * LICENSE:
+    * netty/third_party/netty/LICENSE.txt (Apache License 2.0)
+  * HOMEPAGE:
+    * https://netty.io
+  * LOCATION_IN_GRPC:
+    * netty/third_party/netty
+
+------------------------------------------------------------------------------------