Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-users] How to remove a FeatureType?

Hi Luca,

I suspect this is to-be-expected behavior.  For better or worse, this runs passed an undocumented feature, so I'll explain a little bit.

While GeoMesa's main goal to handle large volumes of data, not all feature types one wishes to store qualify as 'big data'.  For instance, there are shapefiles for political boundaries or country capitals.  To handle different query types, GeoMesa creates 3 different data tables, and 2 metadata tables (the 'catalog' table and one to store query performance metrics).  

Having 5 tables for each of a numerous collection of small feature types would be unwieldy.  Due to this, feature types can share or not share a set of tables.  The default choice is for sharing to be turned on.  During removeSchema, if a feature type does not have sharing enabled, then the entire tables are safe to be deleted.  Otherwise, we hold off and do not delete the Accumulo tables.  

In the Accumulo monitor, you should see that the GeoMesa tables (except maybe the associates _queries table) have 0 entries.  

Anyhow, I've filed a JIRA issue here: https://geomesa.atlassian.net/browse/GEOMESA-814.  Feel free to update the bug or provide updates here on the user list.

Thanks for the great question and working with us on it.

Jim


----- Original Message -----
From:
lmorandini@xxxxxxxx "Geomesa User discussions" <geomesa-users@xxxxxxxxxxxxxxxx>

To:
"Geomesa User discussions" <geomesa-users@xxxxxxxxxxxxxxxx>
Cc:

Sent:
Thu, 28 May 2015 12:13:55 +1000
Subject:
Re: [geomesa-users] How to remove a FeatureType?


On 27/05/15 23:34, Chris Eichelberger wrote:
>
> 1. The "removeSchema" command, when run on the AccumuloDataStore, is
> meant to remove both the feature data from the index tables and the
> metadata from the catalog table. See:

OK, I think I was mistaken by the Accumulo web admin showing the table even after
their removal. However, GeoServer cannot pick the table up after its removal,
hence I suppose the deletion takes place.

My rig is: Java 8 + Hadoop 2.6 + Spark 1.3.0 + Accumulo 1.5.1 + GeoMesa rc5 +
GeoServer 2.5.2


> 2. The command-line tools do support -- as you appear to have found --
> the "removeschema" command:
> https://github.com/locationtech/geomesa/tree/master/geomesa-tools#removeschema

I tried this as well, but still I am able to see the tables in the Accumulo
web-admin: is this the expected behaviour?

Regards,

Luca Morandini
Data Architect - AURIN project
Melbourne eResearch Group
Department of Computing and Information Systems
University of Melbourne
Tel. +61 03 903 58 380
Skype: lmorandini
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
http://www.locationtech.org/mailman/listinfo/geomesa-users

Back to the top