How to load multiline JSON in spark with Java -
i looking way load multiline json spark using java. spark sqlcontext
has methods load json, supports "one record per line". have multiline json file need process.
example input: json contains words, definitions , example sentences :
{ "one-armedbandit": [ { "function": "noun", "definition": "slot machine", "examples": [ ] } ], ... }
the spark ingestion methods indeed accept json-line format. consider using json processor convert data format before processing.
Comments
Post a Comment