Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zookeeper Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain #75770

Open
HyggeBo7 opened this issue Dec 16, 2024 · 1 comment
Assignees
Labels
tech-issues The user has a technical issue about an application triage Triage is needed zookeeper

Comments

@HyggeBo7
Copy link

HyggeBo7 commented Dec 16, 2024

Name and Version

bitnami/zookeeper:latest

What architecture are you using?

arm64

What steps will reproduce the bug?

The following images of ARM Zookeeper have startup errors

docker pull --platform linux/arm64 bitnami/zookeeper:latest
docker pull --platform linux/arm64 bitnami/zookeeper:3.9
docker pull --platform linux/arm64 bitnami/zookeeper:3.8.4

start command:

docker run -d --name zookeeper -p 2181:2181 --restart=always  -e ALLOW_ANONYMOUS_LOGIN=yes   bitnami/zookeeper:latest

What do you see instead?

start log:

zookeeper 06:43:28.25 INFO  ==> ** Starting ZooKeeper **/opt/bitnami/java/bin/java
ZooKeeper JMX enabled by default
Using config: /opt/bitnami/zookeeper/bin/../conf/zoo.cfg
Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain
Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.server.quorum.QuorumPeerMain
@HyggeBo7 HyggeBo7 added the tech-issues The user has a technical issue about an application label Dec 16, 2024
@github-actions github-actions bot added the triage Triage is needed label Dec 16, 2024
@carrodher
Copy link
Member

carrodher commented Dec 16, 2024

Hi, the issue may not be directly related to the Bitnami container image, but rather to how the application is being utilized, configured in your specific environment, or tied to a particular scenario that is not easy to reproduce on our side since I wasn't able to reproduce the issue on an ARM machine using the same command:

$ docker run --name zookeeper -p 2181:2181 --restart=always -e ALLOW_ANONYMOUS_LOGIN=yes bitnami/zookeeper:latest
zookeeper 18:08:23.44 INFO  ==>
zookeeper 18:08:23.44 INFO  ==> Welcome to the Bitnami zookeeper container
zookeeper 18:08:23.44 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
zookeeper 18:08:23.44 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
zookeeper 18:08:23.44 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
zookeeper 18:08:23.44 INFO  ==>
zookeeper 18:08:23.44 INFO  ==> ** Starting ZooKeeper setup **
zookeeper 18:08:23.45 WARN  ==> You have set the environment variable ALLOW_ANONYMOUS_LOGIN=yes. For safety reasons, do not use this flag in a production environment.
zookeeper 18:08:23.46 INFO  ==> Initializing ZooKeeper...
zookeeper 18:08:23.46 INFO  ==> No injected configuration file found, creating default config files...
zookeeper 18:08:23.48 INFO  ==> No additional servers were specified. ZooKeeper will run in standalone mode...
zookeeper 18:08:23.48 INFO  ==> Deploying ZooKeeper from scratch...
zookeeper 18:08:23.48 INFO  ==> ** ZooKeeper setup finished! **

zookeeper 18:08:23.49 INFO  ==> ** Starting ZooKeeper **
/opt/bitnami/java/bin/java
ZooKeeper JMX enabled by default
Using config: /opt/bitnami/zookeeper/bin/../conf/zoo.cfg
2024-12-16 18:08:23,752 [myid:] - INFO  [main:o.a.z.s.q.QuorumPeerConfig@177] - Reading configuration from: /opt/bitnami/zookeeper/bin/../conf/zoo.cfg
2024-12-16 18:08:23,756 [myid:] - INFO  [main:o.a.z.s.q.QuorumPeerConfig@440] - clientPortAddress is 0.0.0.0:2181
2024-12-16 18:08:23,756 [myid:] - INFO  [main:o.a.z.s.q.QuorumPeerConfig@444] - secureClientPort is not set
2024-12-16 18:08:23,756 [myid:] - INFO  [main:o.a.z.s.q.QuorumPeerConfig@460] - observerMasterPort is not set
2024-12-16 18:08:23,756 [myid:] - INFO  [main:o.a.z.s.q.QuorumPeerConfig@477] - metricsProvider.className is org.apache.zookeeper.metrics.impl.DefaultMetricsProvider
2024-12-16 18:08:23,757 [myid:1] - INFO  [main:o.a.z.s.DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
2024-12-16 18:08:23,757 [myid:1] - INFO  [main:o.a.z.s.DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
2024-12-16 18:08:23,757 [myid:1] - INFO  [main:o.a.z.s.DatadirCleanupManager@101] - Purge task is not scheduled.
2024-12-16 18:08:23,757 [myid:1] - WARN  [main:o.a.z.s.q.QuorumPeerMain@139] - Either no config or no quorum defined in config, running in standalone mode
2024-12-16 18:08:23,758 [myid:1] - INFO  [main:o.a.z.j.ManagedUtil@46] - Log4j 1.2 jmx support not found; jmx disabled.
2024-12-16 18:08:23,759 [myid:1] - INFO  [main:o.a.z.s.q.QuorumPeerConfig@177] - Reading configuration from: /opt/bitnami/zookeeper/bin/../conf/zoo.cfg
2024-12-16 18:08:23,759 [myid:1] - INFO  [main:o.a.z.s.q.QuorumPeerConfig@440] - clientPortAddress is 0.0.0.0:2181
2024-12-16 18:08:23,759 [myid:1] - INFO  [main:o.a.z.s.q.QuorumPeerConfig@444] - secureClientPort is not set
2024-12-16 18:08:23,759 [myid:1] - INFO  [main:o.a.z.s.q.QuorumPeerConfig@460] - observerMasterPort is not set
2024-12-16 18:08:23,759 [myid:1] - INFO  [main:o.a.z.s.q.QuorumPeerConfig@477] - metricsProvider.className is org.apache.zookeeper.metrics.impl.DefaultMetricsProvider
2024-12-16 18:08:23,759 [myid:1] - INFO  [main:o.a.z.s.ZooKeeperServerMain@123] - Starting server
2024-12-16 18:08:23,765 [myid:1] - INFO  [main:o.a.z.s.ServerMetrics@64] - ServerMetrics initialized with provider org.apache.zookeeper.metrics.impl.DefaultMetricsProvider@7a5ceedd
2024-12-16 18:08:23,766 [myid:1] - INFO  [main:o.a.z.s.a.DigestAuthenticationProvider@51] - ACL digest algorithm is: SHA1
2024-12-16 18:08:23,766 [myid:1] - INFO  [main:o.a.z.s.a.DigestAuthenticationProvider@65] - zookeeper.DigestAuthenticationProvider.enabled = true
2024-12-16 18:08:23,767 [myid:1] - INFO  [main:o.a.z.s.p.FileTxnSnapLog@124] - zookeeper.snapshot.trust.empty : false
2024-12-16 18:08:23,772 [myid:1] - INFO  [main:o.a.z.ZookeeperBanner@42] -
2024-12-16 18:08:23,772 [myid:1] - INFO  [main:o.a.z.ZookeeperBanner@42] -   ______                  _
2024-12-16 18:08:23,772 [myid:1] - INFO  [main:o.a.z.ZookeeperBanner@42] -  |___  /                 | |
2024-12-16 18:08:23,772 [myid:1] - INFO  [main:o.a.z.ZookeeperBanner@42] -     / /    ___     ___   | | __   ___    ___   _ __     ___   _ __
2024-12-16 18:08:23,772 [myid:1] - INFO  [main:o.a.z.ZookeeperBanner@42] -    / /    / _ \   / _ \  | |/ /  / _ \  / _ \ | '_ \   / _ \ | '__|
2024-12-16 18:08:23,772 [myid:1] - INFO  [main:o.a.z.ZookeeperBanner@42] -   / /__  | (_) | | (_) | |   <  |  __/ |  __/ | |_) | |  __/ | |
2024-12-16 18:08:23,772 [myid:1] - INFO  [main:o.a.z.ZookeeperBanner@42] -  /_____|  \___/   \___/  |_|\_\  \___|  \___| | .__/   \___| |_|
2024-12-16 18:08:23,772 [myid:1] - INFO  [main:o.a.z.ZookeeperBanner@42] -                                               | |
2024-12-16 18:08:23,772 [myid:1] - INFO  [main:o.a.z.ZookeeperBanner@42] -                                               |_|
2024-12-16 18:08:23,772 [myid:1] - INFO  [main:o.a.z.ZookeeperBanner@42] -

Suppose you have any questions about the application, customizing its content, or technology and infrastructure usage. In that case, we highly recommend that you refer to the forums and user guides provided by the project responsible for the application or technology.

With that said, we'll keep this ticket open until the stale bot automatically closes it, in case someone from the community contributes valuable insights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-issues The user has a technical issue about an application triage Triage is needed zookeeper
Projects
None yet
Development

No branches or pull requests

3 participants