收到 "Caused by: java.lang.IllegalStateException: HTTP Server cannot be loaded: No implementation of HttpServerFacade found on classpath." 错误

Getting "Caused by: java.lang.IllegalStateException: HTTP Server cannot be loaded: No implementation of HttpServerFacade found on classpath." error

我正在尝试使用苏打水实现 H2O 的分布式随机森林。但是当我 运行 spark-submit 命令时,我遇到了以下错误。

Exception in thread "H2O Launcher thread" java.lang.ExceptionInInitializerError
    at water.init.NetworkInit.initializeNetworkSockets(NetworkInit.java:77)
    at water.H2O.startLocalNode(H2O.java:1621)
    at water.H2O.main(H2O.java:2081)
    at water.H2OStarter.start(H2OStarter.java:22)
    at water.H2OStarter.start(H2OStarter.java:47)
    at org.apache.spark.h2o.backends.internal.InternalBackendUtils$$anonfun$$anon.run(InternalBackendUtils.scala:173)
Caused by: java.lang.IllegalStateException: HTTP Server cannot be loaded: No implementation of HttpServerFacade found on classpath. Please refer to https://0xdata.atlassian.net/browse/TN-13 for details.
    at water.webserver.iface.HttpServerLoader.<clinit>(HttpServerLoader.java:16)
    ... 6 more

我已经尝试了https://0xdata.atlassian.net/browse/TN-13

位置提到的解决方案

但出于某种原因,它仍然无法在类路径中找到 ai.h2o:h2o-jetty-8

我通过将以下 Maven 坐标添加到 spark-submit

中的 packages 选项解决了这个问题

--packages ai.h2o:h2o-jetty-8:3.24.0.3