以GeoMesa Hbase為例,記錄常用的GeoMesa CommandLine
列出數據存儲中的所有表
./bin/geomesa-hbase get-type-names -c geomesa
列出表的字段定義和索引信息
./bin/geomesa-hbase describe-schema -c geomesa -f nifi_test
新建一個表,其中 --spec為表的字段定義
./bin/geomesa-hbase create-schema --catalog geomesa --feature-name nifi_test --spec cardNum:String:index=true,devNum:Integer,distance:Float,x:Double,y:Double,updateTime:Date:index=true,devTime:Date,the_geom:Point:srid=4326:index=true;geomesa.index.dtg='updateTime',geomesa.indices.enabled='z3:the_geom:updateTime'
導出GeoMesa Hbase中的指定表
./bin/geomesa-hbase export -c geomesa --feature-name test3 --output-format json --output /export/soft/geomesa-hbase_2.12-4.0.1/data/data_output.json
刪除指定的表
./bin/geomesa-hbase remove-schema --catalog geomesa --feature-name test3