Closed jayunit100 closed 10 years ago
ok I have been working on this see http://stackoverflow.com/questions/17179200/pig-exception-on-simple-load
jsonstorage needs i
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
<version>3.5</version>
but hive pulls in
so I have a working pom with exclusions for the
I have working pig code that uses a slightly customised JsonStorage parses/filters cities.csv and writes json like {"city":"bangkok","lattitude":"13.75","longitude":"100.48"}
Ive relaxed JSONStorage for now - just serializing into maps in memory. we'll see how it pans out
We need to use existing pig libraries for JSON export, for example see: http://pig.apache.org/docs/r0.10.0/api/org/apache/pig/builtin/JsonStorage.html
And remove our custom JSon line parsers etc... not really necessary i would think.
Ditto for HIVE ... Have to confirm if can HIVE queries output json?
http://stackoverflow.com/questions/9995694/json-output-format-for-hive-query-results