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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -