geotrellis / geotrellis-chatta-demo

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

[WIP] Small Changes #24

Closed jamesmcclain closed 7 years ago

jamesmcclain commented 7 years ago

Before merging this, the issue of Scala 2.11 versus Scala 2.10 should be resolved, because these changes would make the build.sbt file and the README inconsistent/incompatible for the non-GeoDocker case.

I had to use Scala 2.11 in solve the following error, which was preventing the ingest:

Exception in thread "main" java.lang.NoSuchMethodError: scala.reflect.api.JavaUniverse.runtimeMirror(Ljava/lang/ClassLoader;)Lscala/reflect/api/JavaMirrors$JavaMirror;
        at geotrellis.spark.etl.s3.S3Module$.<init>(S3Module.scala:6)
        at geotrellis.spark.etl.s3.S3Module$.<clinit>(S3Module.scala)
        at geotrellis.spark.etl.Etl$.<init>(Etl.scala:27)
        at geotrellis.spark.etl.Etl$.<clinit>(Etl.scala)
        at geotrellis.chatta.ChattaIngest$delayedInit$body.apply(ChattaIngest.scala:15)
        at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
        at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
        at scala.App$$anonfun$main$1.apply(App.scala:76)
        at scala.App$$anonfun$main$1.apply(App.scala:76)
        at scala.collection.immutable.List.foreach(List.scala:381)
        at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
        at scala.App$class.main(App.scala:76)
        at geotrellis.chatta.ChattaIngest$.main(ChattaIngest.scala:12)
        at geotrellis.chatta.ChattaIngest.main(ChattaIngest.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:729)
        at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:185)
        at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:210)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:124)
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
jamesmcclain commented 7 years ago

I think that I am going to close this PR for now. It can be re-opened later if there is impetus.