苏打水滴项目运行问题



我从"https://github.com/h2oai/h2o-droplets/tree/master/sparkling-water-droplet"克隆了闪闪发光的液滴项目。并分别使用 ./gradlew clean 、./gradlewbuild 进行清理和构建项目。之后尝试使用命令
运行项目spark-submit --class water.droplets.SparklingWaterDroplet build/libs/ssolveling-water-droplet-app.jar
然后收到以下错误消息:

Exception in thread "main" java.lang.NoClassDefFoundError: water/fvec/Frame
at water.droplets.SparklingWaterDroplet.main(SparklingWaterDroplet.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:674)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.lang.ClassNotFoundException: water.fvec.Frame
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more
你必须

运行./gradlew shadowJar并使用它创建的jar build/libs/sparkling-water-droplet-app.jar因为它创建了一个胖jar,其中包含提交作业时所需的所有类(build任务不会这样做)。

相关内容

  • 没有找到相关文章

最新更新