Thanks, that was the problem. Now I just wanted to run
through test-geomesa to make sure everything is working and
the tables with features are being created but maybe the some
of the commands or options have changed with 1.2 or my
attributes aren't quite right. I wasn't sure
if CREATE_FEATURENAME and FEATURENAME need to be different.
I see the tables are created, but I assumed list and
describe would have shown some feature attributes if the
features were created.
USER=root
PASS=password
CREATE_CATALOG=test_catalog2
CREATE_FEATURENAME=test_feature2
SPEC=fid:String:index=true,dtg:Date,geom:Point:srid=4326
CATALOG=geomesa_catalog
FEATURENAME=test_feature2
MAXFEATURES=100
# Helper opts for accumulo. These can optionally be
supplied from the
# ACCUMULO_HOME configuration by excluding the arguments
from the geomesa command
INST=geotrellis-accumulo-cluster
ZOO=localhost,localhost,localhost
ACC_OPTS="-u $USER -p $PASS -i $INST -z $ZOO"
geomesa create $ACC_OPTS -c ${CREATE_CATALOG} -f
${CREATE_FEATURENAME} -s ${SPEC} --dtg dtg
geomesa list $ACC_OPTS -c ${CATALOG}
geomesa describe $ACC_OPTS -c ${CATALOG} -f
${FEATURENAME}
geomesa explain $ACC_OPTS -c ${CATALOG} -f ${FEATURENAME}
-q include
# clean up previous temp feature
geomesa deletecatalog $ACC_OPTS --force -c
${CREATE_CATALOG} -f ${CREATE_FEATURENAME}
geomesa list $ACC_OPTS -c ${CREATE_CATALOG}
Using GEOMESA_HOME =
/home/vagrant/geomesa/geomesa-dist/target/geomesa-1.2.0-SNAPSHOT/dist/tools/geomesa-tools-1.2.0-SNAPSHOT
Error in registry file at line number #31
A descriptor is already registered against the name
"org.geotools.ColorReduction" under registry mode "rendered"
Error in registry file at line number #32
A descriptor is already registered against the name
"org.geotools.ColorInversion" under registry mode "rendered"
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Actual binding is of type
[org.slf4j.impl.Log4jLoggerFactory]
Creating 'test_feature2' on catalog table 'test_catalog2'
with spec
'fid:String:index=join,dtg:Date,*geom:Point:srid=4326:index=full:index-value=true'.
Just a few moments...
Creating GeoMesa tables...
Feature 'test_feature2' on catalog table 'test_catalog2'
with spec
'fid:String:index=join,dtg:Date,*geom:Point:srid=4326:index=full:index-value=true'
successfully created.
Created feature test_feature2
Using GEOMESA_HOME =
/home/vagrant/geomesa/geomesa-dist/target/geomesa-1.2.0-SNAPSHOT/dist/tools/geomesa-tools-1.2.0-SNAPSHOT
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Actual binding is of type
[org.slf4j.impl.Log4jLoggerFactory]
Running List Features on catalog geomesa_catalog
Error in registry file at line number #31
A descriptor is already registered against the name
"org.geotools.ColorReduction" under registry mode "rendered"
Error in registry file at line number #32
A descriptor is already registered against the name
"org.geotools.ColorInversion" under registry mode "rendered"
Using GEOMESA_HOME =
/home/vagrant/geomesa/geomesa-dist/target/geomesa-1.2.0-SNAPSHOT/dist/tools/geomesa-tools-1.2.0-SNAPSHOT
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Actual binding is of type
[org.slf4j.impl.Log4jLoggerFactory]
Describing attributes of feature 'test_feature2' from
catalog table 'geomesa_catalog'...
Error in registry file at line number #31
A descriptor is already registered against the name
"org.geotools.ColorReduction" under registry mode "rendered"
Error in registry file at line number #32
A descriptor is already registered against the name
"org.geotools.ColorInversion" under registry mode "rendered"
Error: feature 'test_feature2' not found. Check
arguments...
java.lang.NullPointerException
at
org.locationtech.geomesa.tools.commands.DescribeCommand.execute(DescribeCommand.scala:29)
at
org.locationtech.geomesa.tools.Runner$.main(Runner.scala:23)
at
org.locationtech.geomesa.tools.Runner.main(Runner.scala)
Using GEOMESA_HOME =
/home/vagrant/geomesa/geomesa-dist/target/geomesa-1.2.0-SNAPSHOT/dist/tools/geomesa-tools-1.2.0-SNAPSHOT
Error in registry file at line number #31
A descriptor is already registered against the name
"org.geotools.ColorReduction" under registry mode "rendered"
Error in registry file at line number #32
A descriptor is already registered against the name
"org.geotools.ColorInversion" under registry mode "rendered"
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Actual binding is of type
[org.slf4j.impl.Log4jLoggerFactory]
Error: Could not explain the query (include): Feature
'test_feature2' has not been initialized. Please call
'createSchema' first.
java.io.IOException: Feature 'test_feature2' has not been
initialized. Please call 'createSchema' first.
at
org.locationtech.geomesa.accumulo.data.AccumuloDataStore$$anonfun$validateMetadata$1.apply(AccumuloDataStore.scala:380)
at
org.locationtech.geomesa.accumulo.data.AccumuloDataStore$$anonfun$validateMetadata$1.apply(AccumuloDataStore.scala:380)
at
scala.Option.getOrElse(Option.scala:121)
at
org.locationtech.geomesa.accumulo.data.AccumuloDataStore.validateMetadata(AccumuloDataStore.scala:380)
at
org.locationtech.geomesa.accumulo.data.AccumuloDataStore.getQueryPlanner(AccumuloDataStore.scala:723)
at
org.locationtech.geomesa.accumulo.data.AccumuloDataStore.planQuery(AccumuloDataStore.scala:717)
at
org.locationtech.geomesa.accumulo.data.AccumuloDataStore.explainQuery(AccumuloDataStore.scala:707)
at
org.locationtech.geomesa.tools.commands.ExplainCommand.execute(ExplainCommand.scala:24)
at
org.locationtech.geomesa.tools.Runner$.main(Runner.scala:23)
at
org.locationtech.geomesa.tools.Runner.main(Runner.scala)
Using GEOMESA_HOME =
/home/vagrant/geomesa/geomesa-dist/target/geomesa-1.2.0-SNAPSHOT/dist/tools/geomesa-tools-1.2.0-SNAPSHOT
Error parsing arguments: Unknown option: -f
Usage: geomesa [command] [command options]
Commands:
create Create a feature definition in a
GeoMesa catalog
deletecatalog Delete a GeoMesa catalog
completely (and all features in it)
deleteraster Delete a GeoMesa Raster Table
describe Describe the attributes of a
given feature in GeoMesa
env Examine the current GeoMesa
environment
explain Explain how a GeoMesa query will
be executed
export Export a GeoMesa feature
getsft Get the SimpleFeatureType of a
feature
help Show help
ingest Ingest/convert various file
formats into GeoMesa
ingestraster Ingest a raster file or raster
files in a directory into GeoMesa
list List GeoMesa features for a given
catalog
queryrasterstats Export queries and statistics
about the last X number of queries to a CSV file.
removeschema Remove a schema and associated
features from a GeoMesa catalog
tableconf Perform table configuration
operations
version GeoMesa Version
Using GEOMESA_HOME =
/home/vagrant/geomesa/geomesa-dist/target/geomesa-1.2.0-SNAPSHOT/dist/tools/geomesa-tools-1.2.0-SNAPSHOT
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Actual binding is of type
[org.slf4j.impl.Log4jLoggerFactory]
Running List Features on catalog test_catalog2
Error in registry file at line number #31
A descriptor is already registered against the name
"org.geotools.ColorReduction" under registry mode "rendered"
Error in registry file at line number #32
A descriptor is already registered against the name
"org.geotools.ColorInversion" under registry mode "rendered"
test_feature2