Unable to Parse JSON file from S3 in AWS Quick Sight

Rubens_Zimbres

I developed a pipeline in AWS where I collect CPU Temperature from my notebook via Python 3, send to AWS IoT Core using security protocols, a rule sends data to Cloud Watch and DynamoDB saves it. A Data Pipeline was created to save this DynamoDB data to S3 and I want to generate plots of this data with Quick Sight.

However, I am not being able to make Quick Sight properly read the file. The S3 file looks like this:

{"timestamp":{"s":"1526819850637"},"payload":{"m":{"$Temperature":{"s":"42.000"}}}}
{"timestamp":{"s":"1526819976032"},"payload":{"m":{"$Temperature":{"s":"42.000"}}}}
{"timestamp":{"s":"1526819934216"},"payload":{"m":{"$Temperature":{"s":"42.000"}}}}
{"timestamp":{"s":"1526817845094"},"payload":{"m":{"$Temperature":{"s":"48.000"}}}}

When I use the manifest file below, Quick Sight successfully reads data but the 'parseJson' command in New Calculated field disappears, making impossible to read the JSON:

{
    "fileLocations": [
        {
            "URIs": [
                "https://s3.amazonaws.com/my-bucket2/2018-05-20-12-32-49/12345-a279-1234-2269-491212345"
            ]
        },
        {
            "URIPrefixes": [
                "https://s3.amazonaws.com/my-bucket2/2018-05-20-12-32-49/12345-a279-1234-2269-491212345"
            ]
        }
    ],"globalUploadSettings": {
        "format": "CSV","delimiter":"\n","textqualifier":"'"
    }

}

Quick Sight reads the JSON as:

{{"timestamp":{"s":"1526819850637"},"payload":{"m":{"$Temperature":{"s":"42.000"}}}}}

... with no 'parseJson' command.

Data in Quick Sight has no missing values and the AWS pipeline works perfectly. What can I do ?

Rubens_Zimbres

I found the way to make it work. Simply:

{
    "fileLocations": [
        {
            "URIs": [
                "https://s3.amazonaws.com/your-bucket2/2018-05-20-12-32-49/123456789"
            ]
        },
        {
            "URIPrefixes": [
            "https://s3.amazonaws.com/your-bucket2/2018-05-20-12-32-49/123456789"
            ]
        }
    ],"globalUploadSettings": {"format":"JSON",
    "delimiter":"\n","textqualifier":"'"
    }
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to parse an AWS S3 file from a Lambda function

From Dev

AWS Lambda unable to GET a file from S3

From Dev

Unable to parse values from a JSON file

From Dev

AWS Lambda python function to parse json from S3 and store in DynamoDB

From Dev

Query S3 json file in AWS

From Dev

How to read an .xls file from AWS S3 using spark in java? And unable to read sheetName

From Dev

Upload JSON file to aws s3 bucket from aws-sdk in node.js

From Dev

Unable to download images from AWS S3, Swift 3

From Dev

Trigger AWS lambda function using input parameter from json file uploaded to S3

From Dev

Why axios GET error when downloading json file from remote AWS S3 server

From Dev

AWS Lambda using Python, get .json file data from S3 Bucket and put it into DynamoDB

From Dev

s3.save a json file to aws s3

From Dev

Move Images From Parse To S3 AWS

From Dev

Unable to upload a pdf file to AWS s3 bucket - PHP

From

Unable to parse this json file in golang

From Dev

Unable to parse valid json file

From Dev

Unable to connect to AWS S3 from a react js app

From Dev

Limit write access to JSON file on AWS S3 server

From Dev

How to append to json file on AWS S3

From Dev

Unable to fetch file from s3 with api

From Dev

Unable to download a file from S3 by the URL in a browser

From Dev

Download Inventory File from AWS S3

From Dev

Convert file from csv to parquet on S3 with aws boto

From Dev

Python - Download file from AWS S3 for the current date

From

Download file from AWS S3 using Python

From Dev

pyspark read file from AWS S3 not working

From Dev

downloading from AWS S3 while file is being updated

From Dev

AWS S3 File Download from the client-side

From Dev

How to upload file in AWS S3 from Angular 8

Related Related

  1. 1

    How to parse an AWS S3 file from a Lambda function

  2. 2

    AWS Lambda unable to GET a file from S3

  3. 3

    Unable to parse values from a JSON file

  4. 4

    AWS Lambda python function to parse json from S3 and store in DynamoDB

  5. 5

    Query S3 json file in AWS

  6. 6

    How to read an .xls file from AWS S3 using spark in java? And unable to read sheetName

  7. 7

    Upload JSON file to aws s3 bucket from aws-sdk in node.js

  8. 8

    Unable to download images from AWS S3, Swift 3

  9. 9

    Trigger AWS lambda function using input parameter from json file uploaded to S3

  10. 10

    Why axios GET error when downloading json file from remote AWS S3 server

  11. 11

    AWS Lambda using Python, get .json file data from S3 Bucket and put it into DynamoDB

  12. 12

    s3.save a json file to aws s3

  13. 13

    Move Images From Parse To S3 AWS

  14. 14

    Unable to upload a pdf file to AWS s3 bucket - PHP

  15. 15

    Unable to parse this json file in golang

  16. 16

    Unable to parse valid json file

  17. 17

    Unable to connect to AWS S3 from a react js app

  18. 18

    Limit write access to JSON file on AWS S3 server

  19. 19

    How to append to json file on AWS S3

  20. 20

    Unable to fetch file from s3 with api

  21. 21

    Unable to download a file from S3 by the URL in a browser

  22. 22

    Download Inventory File from AWS S3

  23. 23

    Convert file from csv to parquet on S3 with aws boto

  24. 24

    Python - Download file from AWS S3 for the current date

  25. 25

    Download file from AWS S3 using Python

  26. 26

    pyspark read file from AWS S3 not working

  27. 27

    downloading from AWS S3 while file is being updated

  28. 28

    AWS S3 File Download from the client-side

  29. 29

    How to upload file in AWS S3 from Angular 8

HotTag

Archive