总共三台服务器,一个master,两个slave,运行start-all.sh时报错,提示的错误信息如下:
failed to launch: nice -n 0 /home/zhanghaiping/spark-2.3.3/bin/spark-class org.apache.spark.deploy.master.Master --host localhost --port 7077 --webui-port 8080
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.slf4j.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
full log in /home/zhanghaiping/spark-2.3.3/logs/spark-root-org.apache.spark.deploy.master.Master-1-localhost.localdomain.out
master: starting org.apache.spark.deploy.worker.Worker, logging to /home/zhanghaiping/spark-2.3.3/logs/spark-root-org.apache.spark.deploy.worker.Worker-1-localhost.localdomain.out
slave01: starting org.apache.spark.deploy.worker.Worker, logging to /home/zhanghaiping/spark-2.3.3/logs/spark-root-org.apache.spark.deploy.worker.Worker-1-slave01.