geotrellis / geotrellis-chatta-demo

Demo of GeoTrellis - weighted overlay and zonal summary for University of Tennessee at Chattanooga.
50 stars 34 forks source link

ClassNotFoundException #25

Closed marfago closed 7 years ago

marfago commented 7 years ago

Following the short guide in the home page of the project to setup a demo with docker gives:

[root@c5b34b71fb1c data]# ./ingest.sh --class geotrellis.chatta.ChattaIngest --driver-memory=2G target/scala-2.10/GeoTrellis-Tutorial-Project-assembly-0.1-SNAPSHOT.jar --input file:////data/conf/input.json --output file:///data/conf/output.json --backend-pr ofiles file:///data/conf/backend-profiles.json Exception in thread "main" java.lang.NoClassDefFoundError: geotrellis/raster/stitch/Stitcher at geotrellis.chatta.ChattaIngest$.(ChattaIngest.scala)) at geotrellis.chatta.ChattaIngest.main(ChattaIngest.scala) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.lang.reflect.Method.invoke(Method.java:497)DelegatingMethodAccessorImpl.java:43) at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:185)t$$runMain(SparkSubmit.scala:729) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:124)0) at java.net.URLClassLoader.findClass(URLClassLoader.java:381)) Caused bat java.lang.ClassLoader.loadClass(ClassLoader.java:424)titch.Stitcher ... 12 moreg.ClassLoader.loadClass(ClassLoader.java:357)

marfago commented 7 years ago

Resolved with ./sbt assembly

kklt commented 7 years ago

I have some problems about geotrellis-chatta-demo , what is your email?

pomadchin commented 7 years ago

Hey @kklt you can use our gitter channel, where we can have a real time talk about problems you have trying this demo or geotrellis in general :) there's another option - mailing list. https://github.com/locationtech/geotrellis#contact-and-support

kklt commented 7 years ago

@pomadchin https://gitter.im/geotrellis/geotrellis is it this?

pomadchin commented 7 years ago

@kklt yes, I remember that you you even started your questions :d but suddenly stopped.

kklt commented 7 years ago

@pomadchin I want to run geotrellis-chatta-demo. my environment is CDH5.5 with spark1.5 . I use SBT compile package this demo , then execute ./ingest.sh but it can not run successfully. image it is the fault . how could I sovle this problem ? it must use spark2.0?

pomadchin commented 7 years ago

Are you sure that you have the latest master branch? Because this and this should resolve your problems.

Btw, we don't maintain Spark 1.x compatibility so there may be issues in your case. And GeoTrellis 1.+ supports scala 2.11 only.

kklt commented 7 years ago

@pomadchin I have create a room in https://gitter.im/kklt/Lobby# ,I want to learn from you and I am a chinese

pomadchin commented 7 years ago

@kklt I appreciate it a lot :) but why can't we use GeoTrellis channel? There may be a lot of other people experiencing similar issues, and our conversation can be useful for them.

marfago commented 7 years ago

Hi @kklt , I had to rework the demo a little at the time I was working on it, but in the end I was able to fix it and make it working with spark-2.11.

pomadchin commented 7 years ago

Yo @marfago great news :+1: , glad that it worked for you! And currently demo master branch is updated and depends on the latest GeoTrellis.

marfago commented 7 years ago

Great news! I will take a look at it. Thank you.

kklt commented 7 years ago

@marfago how you run this DEMO successfully?