I am following the instructions in this tutorial, and I am able to create a table using the
UnenclosedEsriJsonInputFormat.
However, I would like to use the enclosed format.
I have tried these two serdes:
CREATE TABLE taxi_agg(area BINARY, count DOUBLE)
ROW FORMAT SERDE 'com.esri.hadoop.hive.serde.EsriJsonSerDe'
STORED AS INPUTFORMAT 'com.esri.json.hadoop.EnclosedEsriJsonInputFormat'
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat';
CREATE TABLE taxi_agg(area BINARY, count DOUBLE)
ROW FORMAT SERDE 'com.esri.hadoop.hive.serde.GeoJsonSerDe'
STORED AS INPUTFORMAT 'com.esri.json.hadoop.EnclosedGeoJsonInputFormat'
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat';
Although I am able to create the table, and insert data, when I do a select the result is always empty:
select ST_AsGeoJSON(area), count from taxi_agg;
Changing EnclosedEsriJsonInputFormat to UnenclosedEsriJsonInputFormat, or EnclosedGeoJsonInputFormat to UnenclosedGeoJsonInputFormat gives correct results.
Not sure if I am doing something wrong, or if there is a problem with the Enclosed Serde.
Version: 2.0.0
I am following the instructions in this tutorial, and I am able to create a table using the
UnenclosedEsriJsonInputFormat.
However, I would like to use the enclosed format.
I have tried these two serdes:
Although I am able to create the table, and insert data, when I do a select the result is always empty:
select ST_AsGeoJSON(area), count from taxi_agg;Changing
EnclosedEsriJsonInputFormattoUnenclosedEsriJsonInputFormat, orEnclosedGeoJsonInputFormattoUnenclosedGeoJsonInputFormatgives correct results.Not sure if I am doing something wrong, or if there is a problem with the Enclosed Serde.
Version: 2.0.0