以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
网友评论