Extracts common functionality into a trait that can be mixed in with multiple Spark Job implementations. Adds a simple stub for a MapshedJob which currently simply returns the the count of cells grouped by their NLCD value for a given polygon.
Testing Instructions
Package the code:
./sbt "project summary" assembly
Start the worker VM. Within the VM, rename /opt/geoprocessing/mmw-geoprocessing-0.4.0.jar to /opt/geoprocessing/mmw-geoprocessing-0.4.0.jar.bak
Copy the generated summary/target/scala-2.10/mmw-geoprocessing-assembly-0.4.0.jar file into the worker VM as /opt/geoprocessing/mmw-geoprocessing-0.4.0.jar
Overview
Extracts common functionality into a trait that can be mixed in with multiple Spark Job implementations. Adds a simple stub for a
MapshedJob
which currently simply returns the the count of cells grouped by their NLCD value for a given polygon.Testing Instructions
Package the code:
worker
VM. Within the VM, rename/opt/geoprocessing/mmw-geoprocessing-0.4.0.jar
to/opt/geoprocessing/mmw-geoprocessing-0.4.0.jar.bak
summary/target/scala-2.10/mmw-geoprocessing-assembly-0.4.0.jar
file into theworker
VM as/opt/geoprocessing/mmw-geoprocessing-0.4.0.jar
worker
VM: MapshedJob.json.txt and SummaryJob.json.txtEnsure that line 34 of
/opt/spark-jobserver/spark-jobserver.conf
reads"geotrellis.spark.io.kryo.KryoRegistrator"
:This is needed for the newer version of GeoTrellis.
Restart Spark Job Server
Create a job context:
Test
MapshedJob
:Test
SummaryJob
to ensure it still works correctly:Connects #25