DESCRIPTION

Module hd.hdfs.in.vector allows to GET Hive table and transform it to GRASS vector map.

NOTES

The module allows to GET results from HDFS and create GRASS vector. The module download serialized GeoJSON file from HDFS to local filesystem and in the second step modifies file to standard GeoJSON format. The second step is important to make file consistent according to GeoJSON standard. In that time, format is readable by v.in.ogr and can be transformed to the native GRASS vector map.

EXAMPLES

Copy and transform Hive table stored as Esri GeoJSON to GRASS vector. The result map will include table with attributes count and bind_id.
hd.hdfs.out.vector.py driver=webhdfs out=europe_agg2 attributes='count int,bin_id int' hdfs=/user/hive/warehouse/europe_agg1

SEE ALSO

hd.hdfs.in.fs, hd.hdfs.in.vector, hd.hdfs.out.vector, hd.hdfs.info, hd.hive.execute, hd.hive.csv.table, hd.hive.select, hd.hive.info, hd.hive.json.table

See also related wiki page.

AUTHOR

Matej Krejci, OSGeoREL at the Czech Technical University in Prague, developed during master thesis project 2016 (mentor: Martin Landa)