[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [geomesa-users] Shapefile Import (Accumulo Data Store) - override.reserved.words
|
Hi David,
Normally you can set it pretty easily in the simple feature type, as
described here:
http://www.geomesa.org/documentation/user/datastores/index_config.html#setting-schema-options
However, for shapefile ingests, you don't have direct control over the
simple feature type being created...
As a work-around, you could create the schema before ingesting the
shapefile. You'd want to match the name and schema from the shapefile.
The code where it's created is here:
https://github.com/locationtech/geomesa/blob/master/geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/geotools/GeneralShapefileIngest.scala#L51
(if you're using 1.3.1 I think the code has changed slightly, but should
be similar)
I've also filed an issue here:
https://geomesa.atlassian.net/browse/GEOMESA-1883
Thanks,
Emilio
On 06/15/2017 04:43 PM, David Boyd wrote:
All:
I have some simple boundary shape files. I am trying to import
these into my Accumulo datastore. When I run the following command I
get errors about the id field and needing to override.reservered.words
- How do I do this?
geomesa ingest -u uuuu-p xxxxxx -c test_catalog -f Ariana
/data/OEGeodata/Ariana/Ariana_22_UNCLASS.shp --zookeepers
bdpnode4:2181 --instance rdk
ERROR The simple feature type contains attribute name(s) that are
reserved words: ID. You may override this check by setting
'override.reserved.words=true' in the simple feature type user data,
but it may cause errors with some functionality.
java.lang.IllegalArgumentException: The simple feature type contains
attribute name(s) that are reserved words: ID. You may override this
check by setting 'override.reserved.words=true' in the simple feature
type user data, but it may cause errors with some functionality.
I looked through the source but can not seem to puzzle out how to
specify that option.
THanks.