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

[Question] [install] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/DefaultParser #16675

Open
2 of 3 tasks
bunenghulai opened this issue Oct 3, 2024 · 3 comments
Labels
question Further information is requested

Comments

@bunenghulai
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

1.安装apache-dolphinscheduler-3.1.9,配置文件配置好的情况下,执行install.sh部署脚本,在安装过程中报:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/DefaultParser
at org.apache.zookeeper.cli.DeleteAllCommand.parse(DeleteAllCommand.java:52)
at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:438)
at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:367)
at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:350)
at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:293)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.DefaultParser
at java.net.URLClassLoader.findClass(URLClassLoader.java:407)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 5 more

What you expected to happen

如何解决?

How to reproduce

手动安装apache-dolphinscheduler-3.1.9,配置dolphinscheduler_env.sh、install_env.sh、common.properties,文件
hadoop为高可用模式

Anything else

No response

Version

3.1.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@bunenghulai bunenghulai added bug Something isn't working Waiting for reply Waiting for reply labels Oct 3, 2024
Copy link

github-actions bot commented Oct 3, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

1.安装apache-dolphinscheduler-3.1.9,配置文件配置好的情况下,执行install.sh部署脚本,在安装过程中报:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/DefaultParser
at org.apache.zookeeper.cli.DeleteAllCommand.parse(DeleteAllCommand.java:52)
at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:438)
at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:367)
at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:350)
at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:293)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.DefaultParser
at java.net.URLClassLoader.findClass(URLClassLoader.java:407)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 5 more

What you expected to happen

如何解决?

How to reproduce

手动安装apache-dolphinscheduler-3.1.9,配置dolphinscheduler_env.sh、install_env.sh、common.properties,文件
hadoop为高可用模式

Anything else

No response

Version

3.1.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@SbloodyS SbloodyS added question Further information is requested and removed bug Something isn't working Waiting for reply Waiting for reply labels Oct 6, 2024
@SbloodyS SbloodyS changed the title [Bug] [install] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/DefaultParser [Question] [install] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/DefaultParser Oct 6, 2024
@Ishani-Gupta
Copy link

I have seem simialr error :

03:42:25.011 [main] INFO org.apache.zookeeper.common.X509Util - Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation
03:42:25.018 [main] INFO org.apache.zookeeper.ClientCnxnSocket - jute.maxbuffer value is 1048575 Bytes
03:42:25.031 [main] INFO org.apache.zookeeper.ClientCnxn - zookeeper.request.timeout value is 0. feature enabled=false
03:42:25.031 [main] DEBUG org.apache.zookeeper.ZooKeeperMain - Processing deleteall
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/DefaultParser
at org.apache.zookeeper.cli.DeleteAllCommand.parse(DeleteAllCommand.java:52)
at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:438)
at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:367)
at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:350)
at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:293)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.DefaultParser
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 5 more

@bunenghulai
Copy link
Author

I have seem simialr error :

03:42:25.011 [main] INFO org.apache.zookeeper.common.X509Util - Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation 03:42:25.018 [main] INFO org.apache.zookeeper.ClientCnxnSocket - jute.maxbuffer value is 1048575 Bytes 03:42:25.031 [main] INFO org.apache.zookeeper.ClientCnxn - zookeeper.request.timeout value is 0. feature enabled=false 03:42:25.031 [main] DEBUG org.apache.zookeeper.ZooKeeperMain - Processing deleteall Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/DefaultParser at org.apache.zookeeper.cli.DeleteAllCommand.parse(DeleteAllCommand.java:52) at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:438) at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:367) at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:350) at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:293) Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.DefaultParser at java.net.URLClassLoader.findClass(URLClassLoader.java:387) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 5 more

我看api-server、master-server、worker-server中的libs目录有commons-cli-1.2.jar,alert-server和tools中没有,于是将commons-cli-1.2.jar包拷贝到alert-server和tools中的libs目录,然后重新安装还是报这个错,但是现在阶段使用没问题,不知道后续有没有影响

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants