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

1. 安装maven

# 安装
wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz

  # 解压

 tar -zxvf apache-maven-3.6.3-bin.tar.gz

 # 添加环境变量

 vim /etc/profile

export MAVEN_HOME=/usr/local/maven-3.6.3

export PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin

  

  # 重新加载环境变量

 source /etc/profile

 # 查看是否安装成功

 mvn -v

2. 重新编译zookeeper代码即可

cd /usr/local/zookeeper

cd /zookeeper-server
mvn package -Dmaven.test.skip=true
 

 

相关文章:

  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-12-08
猜你喜欢
  • 2021-09-20
  • 2021-05-18
  • 2021-08-02
  • 2021-08-15
  • 2021-08-21
  • 2021-11-03
  • 2021-08-19
相关资源
相似解决方案