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

python - cx_oracle unable to find Oracle Client -

shader - OpenGL Shadow Map -

c# - Exchange 2010/2013 TransportAgent Content Conversion for Internal Recipients -