Hi Tom,
Thank you very much for the sample, it's very useful.
However, I have some problems with it. I am unable to find any repository for the org.locationtech.geomesa.spark.api.java.* classes. In order to solve that, I have used the org.locationtech.geomesa.spark.* classes such as SparkContext or SpatialRDDProvider instead of the java ones. When executing the jar, I have an error in the line where we instantiate the JavaSpatialRDDProvider applying the parameters to the JavaGeoMesaSpark class (in my case SpatialRDDProvider and GeoMesaSpark):
Exception in thread "main" java.lang.RuntimeException: Could not find a SparkGISProvider
at org.locationtech.geomesa.spark.GeoMesaSpark$$anonfun$apply$2.apply(GeoMesaSpark.scala:47)
at org.locationtech.geomesa.spark.GeoMesaSpark$$anonfun$apply$2.apply(GeoMesaSpark.scala:47)
at scala.Option.getOrElse(Option.scala:121)
at org.locationtech.geomesa.spark.GeoMesaSpark$.apply(GeoMesaSpark.scala:47)
at org.locationtech.geomesa.spark.GeoMesaSpark.apply(GeoMesaSpark.scala)
at com.praxedo.geomesa.geomesa_spark.Test.main(Test.java:34)
I guess I am missing some Maven dependencies providing the org.locationtech.geomesa.spark.api.java.* classes. These are the dependencies I actually have defined in my pom:
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.locationtech.geomesa</groupId>
<artifactId>geomesa-spark-converter_2.11</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>org.locationtech.geomesa</groupId>
<artifactId>geomesa-spark-core_2.11</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>org.locationtech.geomesa</groupId>
<artifactId>geomesa-spark-geotools_2.11</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>org.locationtech.geomesa</groupId>
<artifactId>geomesa-spark-sql_2.11</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
<version>16.1</version>
</dependency>
</dependencies>
Is it also probable that I am getting the Could not find a SparkGISProvider error because of any missing dependency ?
Can you please share with my your Maven dependencies ?
Thanks,
José
To change your delivery options, retrieve your password, or unsubscribe from this list, visit