Hi I am looking for a way to load large number of json documents one per line
Each line is of the format:
'{id :"id123", "c1":"v1", "c2":"v2", "c3" :"v3"...}'
Each json document can have unknown number of fields. Is there a way to do this in pig? I want to load the fields into separate columns on hbase.
You probably want to use a udf. For instance with python and what you provided:
UDF:
Pig: