Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

ISSUE-2725: Sometimes bin/bookkeeper localbookie does not work from source code #371

Open
sijie opened this issue May 31, 2021 · 0 comments
Labels

Comments

@sijie
Copy link
Member

sijie commented May 31, 2021

Original Issue: apache#2725


When you run the command bin/bookkeeper localbookie 1 from the source code it may happen that it does not work and finished with
Error: Could not find or load main class org.apache.bookkeeper.util.LocalBookKeeper

This is because the find_module_jar function finds these files as main BK server jar:

/PATH-TO-CODE/bookkeeper-server/target/bookkeeper-server-4.14.1-javadoc.jar
/PATH-TO-CODE/bookkeeper-server/target/bookkeeper-server-4.14.1-sources.jar
/PATH-TO-CODE/bookkeeper-server/target/bookkeeper-server-4.14.1-tests.jar

To Reproduce

Run

mvn clean install -DskipTests
bin/bookkeeper localbookie 1

Suggested fix
Enhance find_module_jar in order to skip additional artifacts or use some mvn plugin to get the path of the jar file

@sijie sijie added the type/bug label May 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant