forked from apache/bookkeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue apache#2212: Fix issues in Bookkeeper Docker image that prevent…
…ed containers from starting up Descriptions of the changes in this PR: ### Motivation This PR modifies the Apache Bookkeeper Docker image to fix issues that were causing errors upon container bootstrap. The containers would exit soon after they were launched. See issue apache#2212 for a description of such an error. Note that the problems that are fixed in this PR were observed: * when launching containers using both Docker Compose and Kubernetes. * when we were trying to upgrade the image to: `4.9.2`. It is highly likely that the issue is observed in other versions (except for `4.7.3`) too. * when launching both a standalone container as well as a cluster of three containers. ### Changes The major changes made in this PR are as follows: * Updates the `Dockerfile` to install `zk-shell`. * Update the `init_bookie.sh` file to: * Use `zk-shell` instead of `/opt/bookkeeper/bin/bookkeeper org.apache.zookeeper.ZooKeeperMain` command that doesn't work. * Use `opt/bookkeeper/bin/bookkeeper shell initnewcluster` for initializing the cluster instead of the previously used command that did not work. * Increase the time a container waits for an in-flight `initnewcluster` operation. * Make the comments more descriptive. * Modifies `bin/common.sh` to handle the condition when file `/proc/sys/net/ipv6/bindv6only` is missing in the system. This can prevent a container from starting up in some cases. We have seen this issue on some Kubernetes-based environments. * Fixes errors in `docker-compose.yml` file. *Note:* Some of the changes made in this PR are modeled after changes made by sijie for `v4.7.2` in PR apache#1666 . ### Master Issue apache#2212 Reviewers: Jia Zhai <[email protected]>, Enrico Olivelli <[email protected]> This closes apache#2219 from ravisharda/startup-failure-docker-image, closes apache#2212
- Loading branch information
Ravi Sharda
authored
May 4, 2020
1 parent
94912a9
commit 092ebf2
Showing
5 changed files
with
35 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters