HIVE_CURSOR_ERROR: Row is not a valid JSON Object - JSONException

0 votes

I am creating a JSON file:


HIVE_CURSOR_ERROR: Row is not a valid JSON Object - JSONException: Expected a ',' or ']' at 8 [character 9 line 1]

This query ran against the "sampledatabase" database, unless qualified by the query. Please post the error message on our forum or contact customer support with Query Id: 36f8b31e-185c-40dc-b880-8ca5f776b370.

Nov 26, 2018 in AWS by Jino
• 5,520 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

This is not the correct form of writing JSON files.

The right format is as follows:





Multiple entry as in your case:


Creating database:

    { "firstName":"John", "lastName":"Doe" },
    { "firstName":"Anna", "lastName":"Smith" }]

answered Nov 26, 2018 by Shuvodip Ghosh

Related Questions In AWS

0 votes
1 answer

if instance is a part of some AutoScaling Group in AWS or not ?

You can run this command below on ...READ MORE

answered Jun 1, 2018 in AWS by Cloud gunner
• 4,240 points
0 votes
1 answer
+6 votes
2 answers

Why S3 is called a Object storage?

Amazon S3 stores data as objects within resources called "buckets".  Object storage, also ...READ MORE

answered Sep 24, 2018 in AWS by Priyaj
• 56,140 points
0 votes
1 answer
0 votes
1 answer

How do I write an S3 Object to a file?

While IOUtils.copy() and IOUtils.copyLarge() are great, I would prefer the old ...READ MORE

answered Jul 13, 2018 in AWS by Hammer
• 360 points
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.