You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/12/17 19:36:18 UTC

[GitHub] [pulsar] anvinjain opened a new issue #8993: bookkeeper shell cookie_get command fails in pulsar v2.7.0

anvinjain opened a new issue #8993:
URL: https://github.com/apache/pulsar/issues/8993


   **Describe the bug**
   When executing `bin/bookkeeper shell cookie_get`, the command fails with no such method error.
   ```
   root@pulsar-mini-bookie-0:/pulsar# bin/bookkeeper shell cookie_get
   JMX enabled by default
   Exception in thread "main" java.lang.NoSuchMethodError: com.beust.jcommander.JCommander.usage(Ljava/lang/StringBuilder;)V
   	at org.apache.bookkeeper.tools.framework.Cli.setupCli(Cli.java:142)
   	at org.apache.bookkeeper.tools.framework.Cli.<init>(Cli.java:53)
   	at org.apache.bookkeeper.tools.framework.Cli.runCli(Cli.java:243)
   	at org.apache.bookkeeper.tools.common.BKCommand.apply(BKCommand.java:64)
   	at org.apache.bookkeeper.tools.cli.helpers.BookieShellCommand.runCmd(BookieShellCommand.java:46)
   	at org.apache.bookkeeper.bookie.BookieShell.run(BookieShell.java:2235)
   	at org.apache.bookkeeper.bookie.BookieShell.main(BookieShell.java:2326)
   ```
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Install pulsar locally in minikube
   2. `kubectl exec -n pulsar -it "pulsar-mini-bookie-0" -- /bin/bash`
   3. In the container, execute: `bin/bookkeeper shell cookie_get`
   4. See error
   
   **Expected behavior**
   Should be able to get cookie for the bookie
   
   **Screenshots**
   NA
   
   **Desktop (please complete the following information):**
    - OS: Minikube v1.15.1 on Max OSX 10.14.5
    - Pulsar v2.7.0. Local setup instructions followed from doc
   
   **Additional context**
   Looks like a packaging issue when bundling jars from bookkeeper and pulsar together. Pulsar depends on `jcommander:1.78` and bookkeeper depends on `jcommander:1.48`. The higher version(1.78) gets bundled in pulsar/lib which does not have usage(StringBuilder) signature.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui closed issue #8993: bookkeeper shell cookie_get command fails in pulsar v2.7.0

Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #8993:
URL: https://github.com/apache/pulsar/issues/8993


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] eolivelli commented on issue #8993: bookkeeper shell cookie_get command fails in pulsar v2.7.0

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #8993:
URL: https://github.com/apache/pulsar/issues/8993#issuecomment-747663959


   We are going to cut a release of BK 4.12.1 soon.
   Do you mind creating an issue in BK foe the upgrade?
   Sending a patch would be top!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui commented on issue #8993: bookkeeper shell cookie_get command fails in pulsar v2.7.0

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #8993:
URL: https://github.com/apache/pulsar/issues/8993#issuecomment-750313303


   Thanks @anvinjain @eolivelli, since we have an issue in the bookkeeper, I will close this issue first.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org